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

[ERROR] [WallTime: 1448195093.843222] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

asked 2015-11-22 06:47:52 -0600

Gure Ling gravatar image

updated 2016-06-23 05:00:12 -0600

gvdhoorn gravatar image

I'm practising rosserial-arduino. When I first boot my virtual machine running Ubuntu14.04 with Indigo installed, and run serial_node.py, It is OK.

root@ling-virtual-machine:~# rosrun rosserial_python serial_node.py /dev/ttyACM0 

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

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

[INFO] [WallTime: 1448193773.248642] Note: publish buffer size is 280 bytes

[INFO] [WallTime: 1448193773.249588] Setup publisher on chatter [std_msgs/String]

Then I abort it (^c) and connect arduino to win7(host) and upload another program. When I reconnect to ubuntu and try to open serial port, this error occur.

root@ling-virtual-machine:~# rosrun rosserial_python serial_node.py /dev/ttyACM0

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

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

[ERROR] [WallTime: 1448195093.843222] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

And I rebooted ubuntu and redo the same thing. results are the same. succeed on first try and fail on the second. I'm using ros_lib generated by catkin. I really wonder why.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
0

answered 2016-05-27 04:48:42 -0600

Karthikeya Parunandi gravatar image

Hi! I also encountered the same problem and fixed it, finally. It displays "Connecting to /dev/ttyACM0 at 57600 baud" while the baud rate in my Arduino code was set to be 115200. Hence, set the baud rate as it was in your arduino code (In my case it is 115200) by adding _baud:=X (where 'X' is the baud rate between your computer and the Arduino) to the same command as follows:

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 _baud:=115200

The other reason could be that your port is different from that of the above command. For example, check if your port to which the Arduino is connected, is as entered in the above command i.e, ttyACM0 or ttyACM1 etc . Hope this helps!

edit flag offensive delete link more

Comments

hey, how do you know setting of baudrate in Arduino? in my case when i follow these tutorial, i don't see any baudrate set. how do you know which baudrate of your arduino then?

adelleodel gravatar image adelleodel  ( 2016-06-02 09:23:34 -0600 )edit

Hi! In my case, it was set or rather changed in my code already. If it is not, as in your case, I guess it would be a default of 57600 which means you need not enter your baud rate. Again, this is my guess!

Karthikeya Parunandi gravatar image Karthikeya Parunandi  ( 2016-06-02 10:43:54 -0600 )edit

Hi! thank you for your advice but there is something wrong with my PC these days and get no chance to have a try (bad luck). When I fixed my mass I'll pick up that practise again. Thank you again.

Gure Ling gravatar image Gure Ling  ( 2016-06-02 12:17:57 -0600 )edit

@karthikeya, it has default baudrate 57600, and it was success connected at first, but in the middle time when i move my servo, sometimes it suddenly break the connection. so i guess the rate is being too high, i want to change it a bit slower like 9600.. er, thanks for your response earlier anyway

adelleodel gravatar image adelleodel  ( 2016-06-02 17:42:43 -0600 )edit
0

answered 2020-10-02 13:23:35 -0600

I had same issues with communicating to STM32 controller through ROS-noetic and rosserial-Mbed.

Here, the issue is with the version of the 'rosrun python'.

I installed python3 and obviously, did sudo update that fixed my problem.

edit flag offensive delete link more
0

answered 2023-06-11 09:40:53 -0600

sMartin gravatar image

In your project check the ros.h in lib/ros_lib/ for your microcontroller.

For ESP8266 e.g. someone in their infinite wisdom decided that you'd want to use TCP (WiFi), not Serial (USB)... and then this gem of an error message doesn't even hint at ros.h misconfiguration.

edit flag offensive delete link more
0

answered 2016-06-23 04:49:07 -0600

Tones gravatar image

updated 2016-06-23 04:57:44 -0600

Maybe my answer here can help you: http://answers.ros.org/question/21087...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-22 06:47:52 -0600

Seen: 3,565 times

Last updated: Jun 11 '23