Robotics StackExchange | Archived questions

Run loop error: Serial Port read failure: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

Hi everyone,

I have 2 devices that connect to the ROS Melodic running on Ubuntu 18.04 (Jetson Nano 4Gb) through serial ports (/dev/ttyACM0 baud: 57600; and /dev/ttyACM1 baud: 115200). All of the nodes worked perfectly and there are no problem with the serial connection (rosserialpython pkg -> serialnode.py) if I run each single node separately step by step from console. However, if I put all those nodes into a launch file, the error happened as bellows:

"Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino."

"Run loop error: Serial Port read failure: device reports readiness to read but returned no data (device disconnected or multiple access on port?)"

If I remove one node that connect to /dev/ttyACM1 (or dev/ttyACM0) from the launch file, the launch file worked without any error. So I think the problem is narrowed to multiple access on port. Does anyone know how to solve it?

Many thanks,

Asked by luongh on 2021-11-15 23:28:51 UTC

Comments

Answers

The node that accesses /dev/ttyACM0 and the node that accesses /dev/ttyACM1 may have been set up with the same name.

Isn't the name="node_name" part of the launch file the same name? If so, a different name may help.

Asked by miura on 2021-11-16 19:11:54 UTC

Comments