add serial port write timeout