Script to capture packets from serial and convert them to pcap format