DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
radio_sniff.h File Reference

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

#include "ServerConfig.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 (DETWS_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/det_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: ::detws_radiosniff_global writes the pcap global header (DLT TAP), and ::detws_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.