Skip to content

Feature/killerbee integration - #2

Merged
sabas1080 merged 24 commits into
mainfrom
feature/killerbee-integration
Jul 21, 2026
Merged

sabas1080 merged 24 commits into
mainfrom
feature/killerbee-integration

Conversation

@sabas1080

Copy link
Copy Markdown
Member

No description provided.

wero1414 and others added 24 commits July 1, 2026 21:28
The finally block called kb.sniffer_off()/kb.close() unguarded; since
sniffer_off() sends a real protocol command it can raise (e.g. device
disconnected or sniffer_on failed before RX started), which would
override an already-chosen [FAIL]/exit-code path with a raw traceback.
Wrap each cleanup call in its own try/except so failures are swallowed
and close() still runs even if sniffer_off() raises.

Also mirror smoke_phy4_ieee154.py's except chain (ConnectionError/
TimeoutError/FeralRFError -> 3/4/5) ahead of the generic
except Exception -> 6 catch-all, instead of collapsing every error
into the generic case.
…EE PHY state

Guards against a stale PHY (e.g. stick left in BLE) breaking the first
802.15.4 session (FeralRF f9-partial: IEEE<->BLE needs a reset between modes).
Reset is best-effort (swallows failure when no RP2040 shell port) and can be
disabled with reset_on_init=False. +3 tests.
…d SDK path

Bench-validated on real hardware (2026-07-02): the reset_device() boot/exit
cycle disrupts the CC1352 on the stock RP2040 passthrough and the following
init() times out; a plain init works reliably. Make reset opt-in.
Also: firmware/cc1352 CMakeLists hardcoded the dev's $HOME/ti path for the
prebuilt libs; default TI_SDK_FULL to TI_SDK_PATH (portable) + document the
installer requirement.
…2nd RF_Object

JAM_CONTINUOUS failed because RadioIF_startJamSession did RF_open(&s_jam_rf_object)
— a 2nd RF_Object, which returns NULL per the one-RF_Object rule (ARCHITECTURE §5).
Reuse s_rf_handle via switchRfMode, exactly like the working TX path
(RadioIF_executeTxCommand). Built + flashed + RX-verified on hardware 2026-07-02.
Remove BLE protocol layer (keep BLE PHY for raw capture)
@sabas1080
sabas1080 merged commit 338a630 into main Jul 21, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants