ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
radio_sniff.h File Reference

Receive-only radio channel sniffer -> pcap capture records (PC_ENABLE_RADIO_SNIFF). More...

#include "protocore_config.h"
#include "shared_primitives/pcap.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

Receive-only radio channel sniffer -> pcap capture records (PC_ENABLE_RADIO_SNIFF).

The RF gateway drivers (CC1101, LoRa, the Thread 802.15.4 RCP) can run receive-only - sniff a channel without joining - and the frames they pull off the air belong in the same capture pipeline as the CAN and Wi-Fi captures (shared_primitives/pc_pcap). For 802.15.4 that means wrapping each frame in the Wireshark IEEE 802.15.4 TAP pseudo-header so the per-frame RSSI and channel travel with it, then a standard pcap record, giving a .pcap a wired Wireshark opens with the radio metadata intact.

This is that pure framing: ::pc_radiosniff_global writes the pcap global header (DLT TAP), and ::pc_radiosniff_tap_record writes one record (TAP header + RSSI/channel TLVs + the MAC frame). The radio drivers own the receive; this owns the on-wire capture bytes. No heap, no stdlib, host-testable.

Definition in file radio_sniff.h.