title: Getting faster baud rates with termios
body: <p>Using Non-Canonical Input Processing, I am reading in the serial data being sent to a Xbee S2B Pro (ZB) using a Xbee Interface XBIB-R-Dev with a "DB9-to-USB" cable. I am using some of the example code from <a href="http://tldp.org/HOWTO/Serial-Programming-HOWTO/x115.html" rel="nofollow">http://tldp.org/HOWTO/Serial-Programming-HOWTO/x115.html</a>. The project I am doing this in is strictly c code not C++.</p>
  
  <p>When reading info on termios.h on my laptop running Ubuntu Linux 12.04 LTS (32-bit - latest updates), I see that only the highest baud rate available is just 38400 BAUD (B38400 constant). Simply swapping the "#define BAUDRATE" of B38400 for a higher baudrate B57600 or higher will not work since it isn't defined on the header files. I'll get an error say that B57600 is not defined. </p>
  
  <p>My question is is there a better way or a way to get around this (using termios) so I can read data at a faster rate as the Xbee S2B Pro is able to push up to 1 Mbps serial data rate (specification as listed on digi.com site). </p>
  
  <p>Thank you for your help.</p>
  
  <p>Mike</p>