24th March 2010 01:22 AM
Arduino Xbee Pro 2 wireless link - communications are too slow
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 "End unit"
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 "Pod" and this is why it appears to burst the information.
Any help out there to get my transmission speed up?
27th March 2010 09:33 PM
Latency decreases with faster communication rate. I believe there is also a timeout and a byte size setting before the transmit buffer will attempt to empty. SO if the timeout is too long but you aren't sending enough bytes it will wait a while before it sends.
Originally Posted by Jay Renner
14th June 2010 05:01 AM
I just wonder about the common sense of someone who quotes the whole post which sits right above -ridiculous
Electronic Circuits |
Page Time: 0.05127 seconds Memory: 7,234 KB Queries: 17 Templates: 0