added file logging of tx/rx packets