use cfsetispeed and cfsetospeed setting speed baudrate.