I would like a Python file that uses a serial port to generate Wireshark/pcap compatible "trace" files of the serial data being exchanged. Can someone point me at the format of the pcap file I need to create for such data? For example do I have to fake a SLIP/PPP type file or is there such a thing as a "raw serial data" file?
Note that I appreciate that serial data does not have to be "packetized" although in the case I'm working on, it logically is.
And if there is a Python library that already allows me to create the file without much effort, even better! Thanks.