[ros-users] Serial Port Problems

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Titus Appel
Date:  
To: ros-users
Subject: [ros-users] Serial Port Problems
Hello,

I'm using ROS with Eclipse and I'm trying to get the serial port to work so
I can send commands to a robot platform. I'm new to C++ so that might be a
problem. The code compiles ok, but the problem is when I write to the
serial port what I wanted to write doesn't get written. However when I set
a breakpoint at this line:

cnt = write(port,&this->packet[byteNum],1); in src/packet.cpp

and run each time it stops, the serial port writes the correct data in the
buffer.
My code is posted on: http://code.google.com/p/txt-ros/source/browse/

Any help would be appreciated.
Thanks,
Titus