I have an FTDI-based USB serial adapter that I need to run at 7812bps. How can I programmatically set a nonstandard baud rate for a serial device that supports it?
Linux has the TIOCSSERIAL ioctl, and Windows has SetCommState() -- is there a BSD equivalent?
With cfsetispeed()()/cfsetospeed()() and tcsetattr()(). I believe it's POSIX defined interface so should work on big range of OSes. At least I used it when I was playing with Arduino.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.