I have a Windows program written in C# that I've ported to Mono on Linux. It uses serial communication to a CP210x Serial to USB device (/dev/ttyUSB0). It works fine on Windows at 128000, 127117, and 125000 baud rates, but fails at 115200. However, when I run it on Linux, Linux will only accept 115200 as the closest value to the above and the data is corrupt.
I need a solution that I can use in C# or the command line. A C based solution would be workable as a separate executable, but I don't really know how to write it so would need a lot of details there. This needs to work on openSUSE, RHEL5, and Debian.
My question is this, how do I change the /dev/ttyUSB0 baud rate on Linux to one of the higher values mentioned above?