tcp serial communication basics