rosserial_arduino works at 57600, but not at 9600 [closed]
Hi,
I have an arduino sketch using rosserial_ardiuno that works OK using the default speed of 57600 baud over USB cable. I'd like to run the serial over an XBee link which, at present, is 9600 baud.
I know it should be possible to get the XBee running faster, but as a first test, I tried to run the sketch and serial_node.py at 9600. Sometimes, I can get it to run for 5-10 seconds and I know the commands are accepted because I can see the arduino-driven servos responding correctly. But ultimately, the Arduino's LED comes on and commands are no longer accepted.
I've gone over the code but can't figure out what the LED signifies. Presumably something is turning it on to signal a fatal error, but I can't find the code. Help!
What sort of topics are you trying to send? 9600 isn't much bandwidth...
I'm sending turtlesim/Velocity which is just a pair of float32s, so I don't expect a lot of bandwidth to be necessary. Moreover, during testing I'm generating them manually at a low rate.