exchange data form serial port and tcpserver