ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Bluetooth Serial Errors

asked 2012-10-13 17:50:34 -0500

sgwhack gravatar image

updated 2012-10-13 17:51:39 -0500

Hi,

1. I am trying to run an Arduino ROS node connected with a bluetooth serial link. I can get it connected, (with rosrun rosserial_python serial_node.py /dev/rfcomm0) but it won't stay connected for very long. I get the following error (repeatedly):

[ERROR] [WallTime: 1350185780.476810] bad callback: <bound method="" subscriber.callback="" of="" <rosserial_python.serialclient.subscriber="" instance="" at="" 0xa2b65cc="">> Traceback (most recent call last): File "/opt/ros/electric/stacks/ros_comm/clients/rospy/src/rospy/topics.py", line 581, in _invoke_callback cb(msg) File "/opt/ros/electric/stacks/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 121, in callback self.parent.send(self.id, data_buffer.getvalue()) File "/opt/ros/electric/stacks/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 473, in send self.port.write(data) File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 485, in write raise SerialException('write failed: %s' % (v,)) SerialException: write failed: [Errno 5] Input/output error

Has anyone seen this before and knows what to do about it?

2. Also, does any one know what this error means? I get it as I run my program, but I can receive messages from my Arduino regardless of if its showing...

[INFO] [WallTime: 1350185758.107044] Packet Failed : Failed to read msg data

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-14 19:39:39 -0500

fergs gravatar image

[Errno 5] usually indicates that the port read/write has failed because the port was no longer available, perhaps your Bluetooth link if dropping out?

As for question #2, it means that part of a packet was corrupted/lost causing the whole packet to be dropped (over a noisy wireless link this is somewhat expected).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-10-13 17:50:34 -0500

Seen: 713 times

Last updated: Oct 14 '12