Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: synodiporos on May 12, 2012, 11:37:38 AM

Title: Problem communication with xBee
Post by: synodiporos on May 12, 2012, 11:37:38 AM
Hello everyone!

I have two XBEE (series 2) devices and I want connect the first device with a microcontroller (arduino) and the other one on my computer. So I want to control the arduino board from my computer wirelessly. The first device is configured as a coordinator AT (1047) and the second as a Router / End Device AT (1247). These two devices must exchange data in real time (fast).
The problem is that the second Xbee (Router / End Device) cannot read fast the data sent by the computer. This device reads olny 5-6 commands and after that crashes. Must to wait 6-7 seconds to start read again. Instead, the first device(Coordinator) reads and sends all the data in real time.

Does anyone know what could be wrong? I've done something wrong in the regulation of devices?

Thanks!
Title: Re: Problem communication with xBee
Post by: Gertlex on May 13, 2012, 03:22:17 PM
I'm not sure what's wrong, but I've experienced similar problems myself with the Series 2 xbees (though not as bad as you're reporting). 

I found that Series 1 xbees are much more reliable if you just want a wireless serial connection... To quote another post of mine:
http://www.societyofrobots.com/robotforum/index.php?topic=9790.msg112087#msg112087 (http://www.societyofrobots.com/robotforum/index.php?topic=9790.msg112087#msg112087)
Quote
So I discovered at Robogames that my Series 2 (1.25mW) xbees were not giving me a clean connection.  Thankfully I had a pair of series 1's with me and was able to compete with those.  However, I was unable to get data back from the robot via the xbees, and I suspect the Sparkfun board is the culprit.  I've not thoroughly investigated this, but there is some discussion on the Sparkfun product page that I think is related to this...  Bummer, really, because all of the other boards are like 40% larger or more.

To reiterate, Series 1 seems better, but the combination of Axon + Sparkfun board and Series 1 Xbees seems to not work for sending data from Axon to computer.

Hope that helps; I'm by no means an expert.