title: how to configure the port for the baud rate to 9600 using cfsetispeed and tcsetattr command on linux?
body: <p>I am using the following code now, and I am wondering where it is wrong.</p>
  
  <pre><code>struct termios options;
  int fd = open("/dev/ttyUSB0", O_RDWR | O_NOCTTY | O_NDELAY);
  fcntl(fd, F_SETFL, 0);
  tcgetattr(fd, &amp;options);
  cfsetispeed(&amp;options, B9600);
  tcsetattr(fd, TCSANOW, &amp;options);
  </code></pre>