Optimizing USB to serial port settings