Society of Robots - Robot Forum
Software => Software => Topic started by: Kohanbash on August 31, 2007, 05:25:36 PM
-
Hi
Does anyone know how to change the baud rate of an RS232 serial interface using C++ in a Linux environment.
I need to send commands out of the same serial port at different speeds.
I am experimenting with daisy chaining RS232 serial devices together.
-Thanks
-
I am too lazy to explain myself. It is always good to have a library with all good sites for each programming language you know.
For general c++ serial programming try the wikibook:
http://en.wikibooks.org/wiki/Serial_Programming:Serial_Linux (http://en.wikibooks.org/wiki/Serial_Programming:Serial_Linux)
specially for your question:
http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html (http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html)
-
Thanks.