NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to compile and install new FTDI driver on cRIO-9034 with latest kernel

BradM wrote:

...

Digging around, you will probably need to either write some userspace code to directly interact with the serial port for using a non-standard BAUD rate or find someone who's already done this.

Clarifying my previous comment, you'll need to work with userspace code that is making direct ioctl calls to the serial device. The serial driver in the kernel already supports the baud rates that you need, it's simply the userspace libraries that wrap and handle the ioctl calls to serial ports that have limits on the baud rates that are useable.

You'll need to write (or find) some userspace code that directly works with the /dev/tty* device to set baud rates via direct ioctls. There is no need to make any changes to the kenrel, however it can be a useful resource when looking at the ioctls that it will respond to and methods to set the desired baud rate.

A good starting point is the actual kernel source (see: the link I posted above for the driver that's working with the FTDI device) and this Stackoverflow post about serial ioctls: http://stackoverflow.com/questions/12646324/how-to-set-a-custom-baud-rate-on-linux

0 Kudos
Message 11 of 11
(854 Views)