Automatically save in a file the serial port dataflows