Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
223f279
plan(killerbee): CatSniffer-as-KillerBee integration spec + plan
wero1414 Jul 2, 2026
9422dfe
feat(radio): read_one_packet() single-frame helper for KillerBee pnext
wero1414 Jul 2, 2026
e01859f
feat(killerbee): adapter package, construction, capabilities
wero1414 Jul 2, 2026
a9e9eb6
feat(killerbee): set_channel, sniffer_on/off, pnext
wero1414 Jul 2, 2026
910ce7c
feat(killerbee): inject (FCS-strip) + jammer_on/off via start_jam
wero1414 Jul 2, 2026
c9e1428
feat(killerbee): device discovery + optional-dep packaging
wero1414 Jul 2, 2026
67a1d9c
docs(killerbee): sniff example + PYTHON_API integration section
wero1414 Jul 2, 2026
265229b
fix(killerbee): guard example cleanup + mirror exception exit codes
wero1414 Jul 2, 2026
842aea5
fix(killerbee): drop unused imports, report autodetected port, tz-awa…
wero1414 Jul 2, 2026
219bd0b
feat(killerbee): KillerBee-side hooks + dispatch test + install/attac…
wero1414 Jul 2, 2026
4a61876
fix(killerbee): best-effort CC1352 reset on adapter init for clean IE…
wero1414 Jul 2, 2026
d5aefdb
docs(killerbee): end-to-end Linux testing runbook (SW tests -> firmwa…
wero1414 Jul 2, 2026
e02d127
fix(killerbee): default reset_on_init=False + fix CMakeLists hardcode…
wero1414 Jul 2, 2026
e910fd5
fix(firmware): IEEE154/jam works — reuse shared RF handle instead of …
wero1414 Jul 2, 2026
f7e2a5d
docs: refresh CLAUDE.md, fix protocol frame order, add BLE-removal sp…
wero1414 Jul 21, 2026
52adcbd
test(ble): remove BLE protocol tests ahead of stack removal
wero1414 Jul 21, 2026
d98e1ce
refactor(ble): remove BLE methods, dataclasses, and builders from Pyt…
wero1414 Jul 21, 2026
e43c39e
refactor(ble): delete BLE Python modules (ble, attacks, ble_periphera…
wero1414 Jul 21, 2026
23e7280
refactor(ble): drop BLE command and response IDs from the wire enum
wero1414 Jul 21, 2026
785a093
refactor(ble): remove BLE protocol stack from CC1352 firmware (keep B…
wero1414 Jul 21, 2026
d44d1a5
docs(ble): remove BLE example scripts and update README example list
wero1414 Jul 21, 2026
99325fc
docs(ble): update architecture, protocol, and CLAUDE docs for BLE pro…
wero1414 Jul 21, 2026
a8c3dcf
docs(ble): list ble_conn_pdu.c in ARCHITECTURE deleted-files note
wero1414 Jul 21, 2026
24640c0
Merge pull request #1 from ElectronicCats/feature/remove-ble-protocol
wero1414 Jul 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 83 additions & 83 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,123 +4,123 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

## Project Overview

FeralRF is a universal firmware for CatSniffer hardware (CC1352P + RP2040) providing RF capabilities: sniffing, TX/RX, jamming, and spectrum analysis for BLE, Zigbee, and Sub-1GHz (868/915 MHz).
FeralRF is universal firmware plus a Python host API for CatSniffer hardware (CC1352P7 + RP2040). It provides RF sniffing, TX/RX, jamming, spectrum work, and crypto helpers across raw BLE PHY capture (BLE 5.x; protocol/connection handling is out of scope here - Sniffle covers that), IEEE 802.15.4 (Zigbee/Thread), and Sub-1GHz (868/915 MHz), plus SX1262 LoRa on the RP2040 side.

**License:** GPL-3.0
License: GPL-3.0. Authoritative design doc: `docs/ARCHITECTURE.md` (read it before touching firmware or the wire protocol).

## Architecture
## The three build targets

```
HOST (Python API) <-> RP2040 (USB Bridge) <-> CC1352P (Radio Engine)
HOST (Python: feralrf) <-> RP2040 (Zephyr USB bridge) <-> CC1352P7 (TI-RTOS 7 radio engine)
```

- **CC1352P**: Radio operations, COBS protocol, command processing, TI-RTOS 7
- **RP2040**: USB-CDC bridge, timestamping, CC1352 reset monitoring, flow control
- **Python API**: `feralrf` package, async/sync interfaces, pyserial-asyncio
Each target has its own toolchain and lives in its own tree. They rarely change together.

## Hardware Configuration

See `hardware/PINOUT.md` for full details.

### RP2040 ↔ CC1352 UART (3Mbps)
| Signal | RP2040 | CC1352 |
|--------|--------|--------|
| TX | GPIO0 | DIO12 |
| RX | GPIO1 | DIO13 |
| RTS | GPIO2 | DIO14 |
| CTS | GPIO3 | DIO15 |

### Control & LEDs
| Signal | RP2040 GPIO |
|--------|-------------|
| RESET_CC | GPIO15 |
| LED1 | GPIO28 |
| LED2 | GPIO27 |
| LED3 | GPIO26 |

### Notes
- SWD not available (JTAG only on DIO16/DIO17)
- Bootloader via UART (TI ROM BSL)
- LEDs are active low
- `python/feralrf/` - host API, the layer you will edit most. Pure Python, unit-testable without hardware.
- `firmware/cc1352/` - the radio engine. C, TI-RTOS 7, TI SimpleLink SDK 8.30.01.01.
- `firmware/rp2040/catsniffer/` - the USB bridge. C, Zephyr RTOS, board `rpi_pico`.

## Build Commands

```bash
# Build Docker container
docker build -t feralrf-build -f docker/Dockerfile .
### CC1352 firmware (`firmware/cc1352/`)

# Build CC1352 firmware (requires TI SDK in firmware/sdk/)
The TI SDK is a git submodule at `firmware/sdk/simplelink_cc13xx_cc26xx_sdk_8_30_01_01` (`git submodule update --init`). Default device variant is `CC1352P7`; `CC1352P` is also selectable via `-DDEVICE_VARIANT=`.

```bash
cd firmware/cc1352 && mkdir -p build && cd build
cmake .. && make -j$(nproc)
cmake .. && make -j$(nproc) # outputs feralrf_cc1352.elf/.hex/.bin
```

# Build RP2040 firmware (Pico SDK auto-downloaded)
cd firmware/rp2040 && mkdir -p build && cd build
cmake .. -DPICO_SDK_PATH=../../sdk/pico-sdk && make -j$(nproc)
Important build caveat: the open-source GitHub SDK ships only the RF core prebuilt lib. The build also links three precompiled libs (drivers, driverlib, sysbios) that come only from TI's full installer SDK. Either install that and point `-DTI_SDK_FULL=~/ti/simplelink_cc13xx_cc26xx_sdk_8_30_01_01`, or copy the three `.a`/`.lib` files into the submodule. Do NOT hardcode a machine-specific `$HOME` path in CMakeLists. The Docker image (`docker build -t feralrf-build -f docker/Dockerfile .`) provides the ARM GCC toolchain.

# Build Python package
cd python && pip install -e ".[dev]"
Flash the `.hex` (via catnip/UART BSL). The `.bin` causes boot failures.

### RP2040 firmware (`firmware/rp2040/catsniffer/`)

This is a Zephyr application, NOT a Pico-SDK project. It requires an external Zephyr workspace (west + Zephyr SDK 0.17+, Zephyr ~4.1.99); there is no in-repo `west.yml`.

```bash
source ~/zephyrproject/.venv/bin/activate && export ZEPHYR_BASE=$HOME/zephyrproject/zephyr
cd firmware/rp2040/catsniffer
west build -b rpi_pico # -p for a clean build; output build/zephyr/zephyr.uf2
picotool load build/zephyr/zephyr.uf2 # or copy the uf2 to the RPI-RP2 mass-storage volume
```

## Test Commands
### Python package (`python/`)

```bash
# Python unit tests
cd python && source .venv/bin/activate && pytest
cd python && pip install -e ".[dev]" # add ",killerbee" for the KillerBee integration
```

# Python tests with coverage
pytest --cov=feralrf
## Test Commands

# Hardware integration tests
pytest -m hardware
```bash
cd python && pytest # unit tests, no hardware (asyncio_mode=auto, testpaths=tests)
pytest --cov=feralrf
pytest tests/test_protocol.py -k crc16 # single file / single test
pytest -m hardware # requires a connected FeralRF device
```

## Current Status
Beyond unit tests: `python/examples/*.py` are official smoke/release-gate scripts run against real hardware; `python/examples/lab/*` are manual/OTA/soak/demo workflows. The end-to-end KillerBee-on-Linux runbook (software tests -> firmware -> KillerBee CLI -> key-capture attack) is `docs/TESTING-ON-LINUX.md`.

## Python API structure (`python/feralrf/`)

Layered; do not skip layers (rule in `docs/ARCHITECTURE.md` section 4):

**FASE 0: Completada ✅**
- L1 transport: `protocol.py` (COBS + CRC16-CCITT + pyserial).
- L2 commands: `commands.py`, `_responses.py` (frame builders / response parsing).
- L3 core (the stable public API): `radio.py` (the `Radio` class - one big class exposing everything: `set_phy`, `start_rx`/`read_packets`, `transmit*`, `configure_prop`, TX test modes, and AES/SHA/ECDH/ECDSA crypto), plus `enums.py`, `presets.py`, `exceptions.py`. BLE PHY raw capture stays (`PHY.BLE_1M`/`BLE_2M`/`BLE_CODED_S8`/`BLE_CODED_S2`); the BLE connection/GATT protocol stack was removed 2026-07-20 (Sniffle handles BLE).
- L4 features: `emulation/` (IEEE154, OOK, sub-1GHz device emulation), `_jamming.py`, `_spectrum.py`.
- Integrations: `integrations/killerbee.py` - exposes a CatSniffer as a KillerBee IEEE 802.15.4 device (`killerbee` is an optional, lazily imported dependency). Note `reset_on_init` defaults to False: the reset cycle breaks `init()` on stock RP2040 passthrough firmware and is only safe with FeralRF's own RP2040 build.

| Component | Status | Output |
|-----------|--------|--------|
| RP2040 firmware | ✅ | feralrf_rp2040.uf2 (46KB) |
| CC1352 firmware | ✅ | feralrf_cc1352.elf (392B code) |
| Python package | ✅ | 13/13 tests passing |
| GitHub Actions | ✅ | build.yml, release.yml |
| SDKs | ✅ | TI SDK 7.10.01.24, Pico SDK 2.0.0 |
`feralrf/__init__.py` marks API stability tiers (STABLE / EXPERIMENTAL / PENDING command sets). Public surface is `Radio` + dataclasses; features build on L3 and never bypass to L2/L1.

**Próximo: FASE 1 - BLE Sniffer MVP**
## Wire Protocol

Ver `SESSION_STATE.md` para contexto completo de la sesión anterior.
COBS-framed binary with CRC16-CCITT (poly 0x1021). The framing implemented in `python/feralrf/protocol.py` (`build_frame`, `crc16_ccitt`) is the source of truth; `docs/protocol.md` documents it. The authoritative command/response IDs are the `Command` and `Response` IntEnums in `python/feralrf/enums.py` and the firmware's `command_processor.c` - keep those two in sync when adding a command.

## Protocol
- Command IDs (host -> device): `0x01`-`0x62`, not contiguous. Several IDs in the `0x09`-`0x52` range were the BLE connection/GATT protocol commands (`SET_BLE_ADDR`, `SET_BLE_SCAN_MODE`, `CONNECT`, `GATT_*`, `FOLLOW_*`, `BLE_ADV_LEGACY`, etc.) and were retired when the BLE stack was removed 2026-07-20; those numeric IDs are not reused.
- Response IDs (device -> host): `0x80`-`0xFF`. Key ones: `ACK 0x80`, `ERROR 0x81`, `RX_PACKET 0x90`.

COBS-framed binary protocol with CRC16-CCITT. See `PLAN_MAESTRO.md` section 3 for full command IDs and frame format.
## CC1352 firmware layout (`firmware/cc1352/src/`)

Key response codes: `RSP_ACK (0x80)`, `RSP_ERROR (0x81)`, `RSP_RX_PACKET (0x90)`
Layered radio engine (full table in `docs/ARCHITECTURE.md` section 2). Notable modules: `radio_if.c`/`phy_manager.c` (PHY abstraction + SmartRF configs), `ll_manager.c` (kept RX PDU classifier - identifies ADV/SCAN/CONNECT/DATA kinds from raw BLE captures; not part of the deleted protocol stack), `host_if.c`/`protocol.c`/`command_processor.c` (UART + COBS + dispatch), `control_task.c`/`data_task.c` (TI-RTOS tasks). The BLE connection/GATT stack (`ble_conn.c`, `ble_conn_mgr.c`, `ble_conn_pdu.c`, `ll_follower.c`, `att_client.c`, `csa2.c`) was deleted 2026-07-20; BLE PHY (`smartrf_ble5_0.c`) and `crypto_engine.c` are unaffected and stay.

## Python Dependencies
### Critical RF invariants (load-bearing - violating these causes silent hangs)

| Package | Purpose |
|---------|---------|
| pyserial | Serial communication |
| pyserial-asyncio | Async serial support |
| cobs | COBS encoding/decoding |
From `docs/ARCHITECTURE.md` section 5 (and the `ti-rtos-rf-cc1352` skill). Any change to `radio_if.c`/`phy_manager.c` must respect:

## Development Phases
- Exactly ONE `RF_Object` for the whole firmware. The RF driver has `N_MAX_CLIENTS=2`; a second object silently hangs `RF_open`. Share the existing handle.
- `RF_open` runs ONCE at boot; NEVER call `RF_close` (it can deadlock on `SemaphoreP_pend`). A PHY switch is `RF_flush + RF_yield` then reconfigure, not close/reopen.
- Use `RF_postCmd` for `CMD_FS`, never `RF_runCmd(FS)` (hangs under TI-RTOS). BLE sets frequency via the command's `.channel` field and must NOT issue `CMD_FS`; IEEE/Prop require `CMD_FS` but via `RF_postCmd`.
- ADV TX must terminate: use `endTrigger=TRIG_REL_START` with a finite `endTime`, never `TRIG_NEVER` (that hangs `RF_runCmd`).

See `PLAN_MAESTRO.md` section 5. Current phase tracking maintained there.
## Hardware Configuration

Full pinout in `hardware/PINOUT.md`. Verified essentials:

- Phase 0: Setup (Docker, CMake, skeleton)
- Phase 1: BLE Sniffer MVP
- Phase 2: TX + Basic Jamming
- Phase 3: Spectrum Analyzer
- Phase 4: Zigbee + Multi-PHY
- Phase 5: Reactive Jamming (<500µs target)
- Phase 6: Sub-1GHz + Testing
- Phase 7: Bootloader + Release
- RP2040 <-> CC1352 UART: 921600 baud, hardware flow control OFF (`firmware/cc1352/include/config.h`: `UART_BAUD_RATE 921600`, `UART_HW_FLOW_CONTROL 0`). TX=DIO13, RX=DIO12; RTS/CTS pins (DIO14/15) exist but flow control is disabled in firmware.
- CC1352 status LED: DIO24. RESET_CC driven from the RP2040 (GPIO15). SWD not available (JTAG only on DIO16/17); bootloader via UART ROM BSL.
- RP2040 enumerates as three USB CDC-ACM ports: Cat-Bridge (transparent CC1352 passthrough @ 921600), Cat-LoRa (SX1262 stream/command), Cat-Shell (config shell @ 115200). USB VID:PID `0x1209:0xBABB`.

## Key Constraints

- **Memory**: Static allocation only (no malloc) on CC1352
- **RX Buffer**: 16KB circular buffer
- **TX Power**: -20 to +20 dBm
- **Reactive Jamming**: <500µs latency requirement
- **SDK Version**: TI SimpleLink CC13xx/CC26xx SDK 7.10.01.24 (fixed)
- CC1352 memory: static allocation only, no `malloc`. RX buffer is a 16 KB static circular buffer. FW size budget < 120 KB.
- TX power range: -20 to +20 dBm. Reactive jamming target: < 500 us latency.
- SDK version is fixed at TI SimpleLink CC13xx/CC26xx 8.30.01.01.

## Docs map

- `docs/ARCHITECTURE.md` - authoritative layered design + RF rules.
- `docs/protocol.md` - wire-format contract.
- `docs/PYTHON_API.md` - public API status and usage guidance.
- `docs/VALIDATION_MATRIX.md` - baseline matrix and recommended validation flow.
- `docs/TESTING-ON-LINUX.md` - end-to-end KillerBee integration runbook.
- `docs/superpowers/specs/` - dated per-phase design specs (the "why" behind features).
- `docs/PLAN_MAESTRO.md` - development phases and history.

## Conventions

- Output is plain ASCII: no emojis, no em/en dashes, no fancy Unicode (use `->`, `!=`, `>=`, straight quotes). Applies to code, comments, commit messages, and docs.
- Commits are authored as the user's own work: no AI/Claude attribution, co-author trailer, or "generated with" line.
- Branching: one branch per phase (`feature/fN-<slug>`); merge to `main` only after a human checkpoint; annotated tag `v2.0-fN` on close.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# FeralRF

Universal firmware for CatSniffer (CC1352P + RP2040) providing RF capabilities: sniffing, TX/RX, jamming, and spectrum analysis for BLE, Zigbee, and Sub-1GHz.
Universal firmware for CatSniffer (CC1352P + RP2040) providing RF capabilities: sniffing, TX/RX, jamming, and spectrum analysis for BLE-PHY, Zigbee, and Sub-1GHz.

## Features

- **Multi-protocol support**: BLE 5.x, IEEE 802.15.4 (Zigbee), Sub-1GHz (868/915 MHz)
- **Multi-protocol support**: raw BLE-PHY capture (protocol handling via Sniffle), IEEE 802.15.4 (Zigbee), Sub-1GHz (868/915 MHz)
- **Sniffing**: Promiscuous mode packet capture
- **TX/RX**: Raw packet transmission and reception
- **Jamming**: Continuous wave and reactive jamming (<500µs latency)
Expand Down Expand Up @@ -58,17 +58,13 @@ cmake .. && make

Official entrypoints in `python/examples/`:

- `ble_sniffer.py`
- `smoke_phase2.py`
- `smoke_ble_scan_mode.py`
- `smoke_phy4_ieee154.py`
- `smoke_prop_phase1.py`
- `smoke_tx_phase1.py`
- `smoke_tx_frame_phase1.py`
- `smoke_tx_burst_phase1.py`
- `smoke_tx_continuous_phase1.py`
- `smoke_tx_ble_phase1.py`
- `release_gate_ble.py`
- `release_gate_multi_phy.py`
- `run_validation_baseline.sh`

Expand Down
29 changes: 19 additions & 10 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
┌──────────────────────────────────────────────────────────────┐
│ HOST (Python) — feralrf package │
│ L5 apps examples/, demos/, attacks/... │
│ L4 features ble.py, _jamming.py, _spectrum.py, emul/... │
│ L4 features _jamming.py, _spectrum.py, emul/... │
│ L3 core radio.py (Radio class), presets.py, enums │
│ L2 cmds commands.py, _responses.py │
│ L1 xport protocol.py (COBS + CRC16), pyserial │
Expand All @@ -24,7 +24,7 @@
┌──────────────────▼───────────────────────────────────────────┐
│ CC1352P7 firmware — FeralRF v2.0 (TI-RTOS 7) │
│ L5 app main_rtos.c, task scheduling │
│ L4 services radio/, ble/, protocol/, queues/ │
│ L4 services radio/, rx/data (ll_manager), protocol/, queues │
│ L3 drivers host_if, RF, GPIO (delgados sobre SDK) │
│ L2 SDK TI SimpleLink CC13xx/CC26xx 8.30.01.01 │
│ L1 platform startup, ccfg, linker, RTOS stubs │
Expand All @@ -42,11 +42,15 @@ No existe capa HAL formal. Los services llaman directamente al TI SDK 8.30 (deci
| L1 platform | Arranque, linker, glue RTOS | `main.c`, `main_rtos.c`, `rtos_stubs.c`, `startup_cc13x2_cc26x2_gcc.c`, `ccfg.c` |
| L3 drivers | IF físicas (UART, RF, GPIO) | `host_if.c`, `host_if_task.c`, `output_if.c`, `ti_rf_config_min.c` |
| L4 radio | PHY abstraction + SmartRF configs | `radio_if.c`, `phy_manager.c`, `smartrf_ble5_0.c`, `smartrf_ieee_15_4_0.c`, `smartrf_prop_0.c` |
| L4 ble | Link layer, conexión, GATT | `ll_manager.c`, `csa2.c`, `ble_conn.c`, `ble_conn_mgr.c`, `att_client.c` |
| L4 queues | TX + packet queues | `tx_queue.c`, `packet_queue.c` |
| L4 rx/data | TX + RX packet queues; clasificador de PDU RX | `tx_queue.c`, `packet_queue.c`, `ll_manager.c` |
| L4 protocol | COBS + commands | `protocol.c`, `command_processor.c` |
| L5 app | Tasks + scheduling | `control_task.c`, `data_task.c`, `task_event.c` |

BLE PHY retained for raw capture; BLE protocol stack removed 2026-07-20 (Sniffle handles BLE).
`ll_manager.c` is the shared RX PDU classifier (ADV/SCAN/CONNECT/DATA) and is kept; the BLE
connection/GATT stack (`ble_conn.c`, `ble_conn_mgr.c`, `ble_conn_pdu.c`, `att_client.c`, `csa2.c`,
`ll_follower.c`) was deleted.

---

## 3. Mapeo Python (`python/feralrf/`)
Expand All @@ -56,7 +60,7 @@ No existe capa HAL formal. Los services llaman directamente al TI SDK 8.30 (deci
| L1 transport | COBS + CRC16 + pyserial | `protocol.py` |
| L2 commands | Command IDs + frame builders | `commands.py`, `_responses.py` |
| L3 core | API pública (`Radio` class, presets, enums) | `radio.py`, `presets.py`, `enums.py`, `exceptions.py` |
| L4 features | Módulos de ataque / spectrum / jamming | `attacks/ble.py`, `_jamming.py`, `_spectrum.py` |
| L4 features | Módulos de ataque / spectrum / jamming | `_jamming.py`, `_spectrum.py` |
| L5 apps | Ejemplos / demos / tools | `python/examples/` |

---
Expand All @@ -65,7 +69,7 @@ No existe capa HAL formal. Los services llaman directamente al TI SDK 8.30 (deci

1. **No saltar capas.** L4 no toca L1 directo. Lo que falta se expone desde L3/L2.
2. **L1 platform no conoce nada de FeralRF.** Startup, ccfg y linker son intercambiables entre boards CC1352P7 si cambias config.
3. **L4 services no conoce transporte.** `att_client` no sabe que hay UART; emite eventos al protocol layer.
3. **L4 services no conoce transporte.** `ll_manager` no sabe que hay UART; emite eventos al protocol layer.
4. **Reglas RF validadas son invariante de L4/radio** (skill `ti-rtos-rf-cc1352`): single RF_Object, PHY switch = `RF_flush + RF_yield + RF_close + RF_open`, precompiled libs obligatorias, etc.
5. **Python L3 es la API pública estable.** L4 features construyen sobre L3, nunca bypass a L2/L1.

Expand Down Expand Up @@ -124,8 +128,12 @@ COBS-framed binary con CRC16-CCITT. Detalles completos en [`protocol.md`](protoc

Frame structure:
```
[COBS-encoded]: [LEN(2) | CMD/RSP(1) | SEQ(1) | PAYLOAD(N) | CRC16(2)]
[COBS-encoded]: [CMD/RSP(1) | SEQ(1) | LEN(2, LE) | PAYLOAD(N) | CRC16(2, LE)]
[0x00 delimiter]

Campos multibyte en little-endian. CRC16-CCITT (poly 0x1021, init 0xFFFF)
calculado sobre CMD/RSP + SEQ + LEN + PAYLOAD. Fuente de verdad:
`python/feralrf/protocol.py` y `firmware/cc1352/src/protocol.c` (identicos).
```

| ID range | Tipo |
Expand All @@ -141,7 +149,8 @@ Single CDC, 921600 baud, no composite USB.

- **CC1352:** allocación estática únicamente (decisión #7). No `malloc`.
- **RX buffer:** 16 KB circular estático.
- **TX queue (BLE central):** 32 frames (commit `5c8b561` post-F8A growth).
- **TX queue (`tx_queue.c`):** 32 frames (commit `5c8b561` post-F8A growth). Originally sized for
the BLE central/follow role; that role was removed 2026-07-20, no current caller remains.
- **FW size budget:** <120 KB (actual: ~91 KB post-F10).

---
Expand All @@ -159,8 +168,8 @@ Single CDC, 921600 baud, no composite USB.

| Layer | Test type | Hardware |
|-------|-----------|----------|
| Python L1–L4 unit | `pytest` (test_props, test_attacks_ble, test_protocol, test_commands_contract, ...) | Ninguno |
| Python L4 integration | `pytest -m hardware`, `-m hardware_ble` | 1+ board |
| Python L1–L4 unit | `pytest` (test_props, test_protocol, test_commands_contract, ...) | Ninguno |
| Python L4 integration | `pytest -m hardware` | 1+ board |
| Firmware functional | `python/examples/smoke_*.py` | 1 board |
| Firmware OTA | `python/examples/run_validation_baseline.sh --rx-port` | 2 boards |
| End-to-end attack | Demos en `python/examples/lab/` (interactivos) | 2 boards + phone/peripheral |
Expand Down
Loading
Loading