Xbee Pro and Arduino communicate too slowly

:stuck_out_tongue:

Hey,

I am working on a project where I have a 2-axis joystick connected to an Arduino Duemilanove. I have a 10 second window at start up where I can calibrate the joystick between 255-0 and then I send 6 bytes of data (Start byte, Address Byte, Checksum Byte, Axis-1 Byte, Axis-2 Byte, Stop Byte). I am using the Xbee Pro 2 shield and Xbee Pro on top of the Arduino. I have the baud rate at 19,200 and the Xbee Pro on the first Arduino is configured as a "Coordinator AT". I have a second Arduino/Xbee set up where the second Xbee is configured as a "Router/End device"

I can monitor the position of the joystick but it is so slow! I would like the data to be received at least 4 times a second for precise control of a two motor robot. Currently, the transmitter (Coordinator Xbee) seems to just burst the information to the End Point Xbee. Yes, I know it seem redundant to send checksum, address bytes, etc....but I need to make very sure I get the right information.

I must be missing something about the Xbee setup. I assume the coordinator is looking for other units in my "PAN" and this is why it appears to burst the information or its the packet delay tripping me up.

Any help out there to get my transmission speed up?

Setting the destination address on the coordinator may help a little.

Thanks for the advice. It helped me to figure out I had the boards in the wrong position. The End Router Xbee needed to be sending out the joystick position to the Coordinator XBee, not the other way around. This setup now transmits the two positions of the joystick at speeds way beyond what I will ever need - even with error checking and such. I plan on doing a distance test to see how far away I can command a little two wheeled bot down a hallway. This setup looks really promising and easy to repeat. ;D