go away spammer

Author Topic: C++ , Linux, and Serial ports  (Read 6129 times)

0 Members and 1 Guest are viewing this topic.

Offline KohanbashTopic starter

  • Supreme Robot
  • *****
  • Posts: 430
  • Helpful? 1
C++ , Linux, and Serial ports
« 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
Robots for Roboticists Blog - http://robotsforroboticists.com/

Offline Tsukubadaisei

  • Robot Overlord
  • ****
  • Posts: 293
  • Helpful? 0
Re: C++ , Linux, and Serial ports
« Reply #1 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

specially for your question:
http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html

A.I.(yes those are my initials)

Offline KohanbashTopic starter

  • Supreme Robot
  • *****
  • Posts: 430
  • Helpful? 1
Re: C++ , Linux, and Serial ports
« Reply #2 on: September 03, 2007, 06:44:05 AM »
Thanks.
Robots for Roboticists Blog - http://robotsforroboticists.com/

 


Get Your Ad Here