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

Rosserial_xbee fails to connect xbees

asked 2016-03-11 00:36:24 -0500

RKV gravatar image

updated 2016-03-11 01:15:32 -0500

gvdhoorn gravatar image

My Xbee works fine with X-CTU in windows.

When I try to transfer data between XBee- end device with arduino to Xbee-coordinator connected to PC using

rosrun rosserial_xbee xbee_network.py /dev/ttyUSB0 1

I am getting following error :

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

I followed the http://wiki.ros.org/rosserial_xbee/Tu... tutorial which works fine for me the first time.

But now its not working.I didn't change any version after that.

I am using ROS Hydro on Ubuntu 12.0.4

Sparkfun Xbee Kit series 1.

Can anyone please help me to solve this problem.

edit retag flag offensive close merge delete

Comments

The device is actually connected to " /dev/ttyUSB0 ". Even I verified earlier.

I am tyring to narrow down the problem to know who is the root cause.

Problem is not with xbee:bcz xbee can communicate in X-CTU using windows.

Xbee configuration doesn't have any problem.

RKV gravatar image RKV  ( 2016-03-13 22:58:08 -0500 )edit

Xbee end device RSSI is blinking means it can receive data from co-ordinator. But CO-orninator RSSI never turns up. Means its not receiving sync from end device.SO what might be the problem in end device

RKV gravatar image RKV  ( 2016-03-13 23:00:11 -0500 )edit

Is it the problem in software serialnode.py or hardware? Hope there wont be problem in hardware connection bcz of same hardware tested in X-CTU.So what I can do in software

RKV gravatar image RKV  ( 2016-03-13 23:01:33 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-03-13 20:53:22 -0500

RKV gravatar image

Hi,

I checked with the device connection before itself as well as now with your command.

Still same problem.

I am able to check the rostopic.Which is published by Xbee as /diagnostics

**header: seq: 14 stamp: secs: 1457920159 nsecs: 757045984 frame_id: '' status:


level: 2
name: rosserial_python
message: no sync with device
hardware_id: ''
values: 
  - 
    key: last sync
    value: Mon Mar 14 09:49:04 2016
  - 
    key: last sync lost
    value: Mon Mar 14 09:49:19 2016**

Any Idea now??.. But what i think is co-ordinator able to communicate with End device with board. The end device is not able to connect with master it seems. I dont know whats the problem.

edit flag offensive delete link more

Comments

Problem got solved.. Try to re-configure Xbee and establish connection when its not working.

RKV gravatar image RKV  ( 2016-03-18 02:47:20 -0500 )edit
0

answered 2016-03-11 10:06:24 -0500

alee gravatar image

The problem with rosserial is that it gives that generic error message for almost anything. First thing I would check is whether your device is actually connected to /dev/ttyUSB0. Run "ls /dev/ | grep tty" before and after you plug in your xbee to the computer then check what port it's connected to based on what appears afterwards.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-03-11 00:36:24 -0500

Seen: 631 times

Last updated: Mar 13 '16