This is an extcap to be used with esp-wifi and the dump-packets
feature.
To use it build via cargo build --release
and copy the resulting executable to the Wireshark's extcap
folder.
Then you should see two new capture interfaces in Wireshark
- esp-wifi HCI capture (for Bluetooth HCI)
- esp-wifi Ethernet capture (for WiFi traffic)
- esp-wifi IEEE802.11 capture (for raw WiFi traffic)
If you are running an application using esp-wifi's dump-packets
feature and logging at INFO level active these capture interfaces can connect via serialport to give you insights on what is going on.
The IEEE802.11
interface must be manually setup by adding log::info!("@WIFIRAWFRAME {:?}", pkt.data)
on packets of interest inside the callback of Sniffer::set_receive_cb
because by default there are too many packets to log them all.
By default it tries to identify exactly one serialport. If that doesn't work for you, you can configure the serialport via the Wireshark UI.