Society of Robots - Robot Forum

Software => Software => Topic started by: Kohanbash on August 31, 2007, 05:25:36 PM

Title: C++ , Linux, and Serial ports
Post 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
Title: Re: C++ , Linux, and Serial ports
Post by: Tsukubadaisei on September 01, 2007, 05:42:25 AM
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)

Title: Re: C++ , Linux, and Serial ports
Post by: Kohanbash on September 03, 2007, 06:44:05 AM
Thanks.