Socket and serial communication working