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

Serial Port read failure: device reports readiness to read but returned no data (device disconnected?)

asked 2015-10-19 07:42:48 -0500

Ju Wen Bo gravatar image

updated 2015-10-19 09:14:47 -0500

gvdhoorn gravatar image

I have been using rosserial connect to Mbed and the node was working well, and recently there was a few times of software update. After the update I cannot run the node and it give the following information. My Mbed was operating well and the I am currently using Ubuntu14.04 ros indigo

[INFO] [WallTime: 1445252210.206610] ROS Serial Python Node

[INFO] [WallTime: 1445252210.216847] Connecting to /dev/ttyACM0 at 57600 baud

[WARN] [WallTime: 1445252212.329202] Serial Port read failure: device reports readiness to read but returned no data (device disconnected?)

[INFO] [WallTime: 1445252212.329920] Packet Failed :  Failed to read msg data
Traceback (most recent call last):
  File "/home/ju/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 82, in <module>
    client.run()
  File "/home/ju/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 472, in run
    rospy.loginfo("msg len is %d",len(msg))
UnboundLocalError: local variable 'msg' referenced before assignment
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-10-19 09:24:06 -0500

vmatos gravatar image

I just had the same result. And it was working on this computer a few weeks before. It seems unrelated to rosserial package: Ubuntu bug ticket

Downgrade to 3.13.0-62-generic and it should work.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-10-19 07:42:48 -0500

Seen: 2,655 times

Last updated: Oct 19 '15