serial port raw data handling