ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
bus_capture.h File Reference

Wired field-bus listen-only capture (PROTOCORE_ENABLE_BUS_CAPTURE) - passive CAN sniffing. More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

Wired field-bus listen-only capture (PROTOCORE_ENABLE_BUS_CAPTURE) - passive CAN sniffing.

The wired counterpart to the Wi-Fi promiscuous tap: put the CAN controller in listen-only mode - it receives and decodes every frame on the bus but never ACKs or transmits, so it is invisible to the other nodes - and hand each frame to a sink. Wire the sink into the forwarding plane (network_drivers/network/forward) to bridge captured CAN frames to another interface (e.g. stream them to a wired collector over Ethernet), exactly like the Wi-Fi capture path.

The pure piece is can_to_socketcan(): format a CanFrame as a 16-byte Linux SocketCAN frame, which with the libpcap DLT_CAN_SOCKETCAN link type (shared/pcap/pcap.h) is a capture Wireshark opens directly. The controller bring-up (listen-only) is the platform's only and needs a CAN transceiver on the bus.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file bus_capture.h.