FibreCode Docs

Packet Capture & Replay (StreamTo)

FibreCode Raw Sticks (FC612 for 100BASE-T1 and FC631 for 10BASE-T1L) bypass standard OS network stacks to provide raw Layer-2 Ethernet packet streaming with high-precision hardware timestamps.

The StreamTo command-line utility enables capturing traffic to standard pcapng files and replaying recorded captures onto automotive Ethernet links.


Before you begin


Download Software Package

Download XSP_FC_StreamTo_Vxx-xx-xx.zip and extract the archive to a folder of your choice:

XSP_FC_StreamTo_V0x-xx-xx/
├── doc/
└── StreamTo/
    ├── Linux/
    │   ├── Raspbian/
    │   └── Ubuntu/
    └── Windows/
        └── bin/
            ├── Win32/
            └── x64/
                └── streamto.exe

Open a terminal or command prompt in your architecture directory and test execution:

streamto.exe -h
sudo ./streamto -h

Record Raw Traffic to pcapng

Record raw automotive Ethernet packets directly into standard pcapng format with hardware timestamps:

streamto.exe pcap rec capture.pcapng
sudo ./streamto pcap rec capture.pcapng

Expected terminal output:

Broadway library API Version 2.14.
Enumerate available devices...
Found 1 Broadway device(s)
Start PCAPNG file writer...
Enable receiving of raw frames...
Write received frames to PCAPNG file, press any key to stop...
9 frames successfully written, 0 frames dropped
19 frames successfully written, 0 frames dropped
28 frames successfully written, 0 frames dropped
37 frames successfully written, 0 frames dropped
47 frames successfully written, 0 frames dropped
56 frames successfully written, 0 frames dropped
66 frames successfully written, 0 frames dropped
76 frames successfully written, 0 frames dropped
85 frames successfully written, 0 frames dropped
Disable receiving of raw frames...
Stop PCAPNG file writer...
86 frames successfully written, 0 frames dropped

If Wireshark is installed, double-click capture.pcapng to inspect raw frame contents, VLAN tags, and hardware timestamps.


Replay pcapng Captures

Replay previously recorded traffic onto a 100BASE-T1 or 10BASE-T1L link using a FibreCode Raw Stick:

streamto.exe playpcap capture.pcapng -n <friendlyname>
sudo ./streamto playpcap capture.pcapng -n <friendlyname>

Parameters

  • <filename>: Path to the .pcapng file to replay.
  • -n <friendlyname>: Unique friendly name of the target FibreCode stick (configured via FC-Control).
  • -d <index>: Alternatively, target device by numerical index (-d 0).
  • -l: Continuous loop replay mode.

Next Steps