1These are postprocessing utility scripts which convert
2the phy dumps in csv format to pcap (or pcapng) files.
3This way the BLE & 15.4 traffic can be analyzed by Wireshark and other tools.
4
5Currently the following scripts exist:
6* csv2pcap         : Encapsulate bsim BLE traffic into pcap format
7* csv2pcap_15.4.py : Encapsulate bsim 15.4 traffic into pcap format
8* csv2pcapng       : Encapsulate bsim traffic (all types) into pcapng format
9
10To merge the TX activity from all devices into a single pcap trace do:
11
12$ dump_post_process/csv2pcapng -o mytrace.pcap results/<sim_id>/d_2G4*.Tx.csv
13
14Replace paths as necessary.
15
16Alternatively one can merge RX and TX activity from a single device
17to get a trace as seen by that device:
18
19$ dump_post_process/csv2pcapng -o mytrace.pcap results/<sim_id>/d_2G4_00.{Rx,Tx}.csv
20
21However be careful not to merge Rx and Tx files from different devices
22or you'll get duplicated records.
23