Uart Baud Rate Speed

 
#1

I'm not really up to speed on Uart ports and how fast to expect them to pass info back and fourth. I'm sending and receiving to a Kangaroo X2 at 9600 baud and when I ask for postion feedback the response seems a little slow. Can I raise the baud rate and speed this up? Can I even do this?

#2

Of course you can change/up the UART baud rate...
From the ezb4 data sheet...
UART
Serial Expansion Port
Asynchronous serial Communication up to 3.75Mbaud

Code:


uartinit(0, 0, 115200) #UART port 0
#or
uartinit(0, 0, 38400) #UART port 0
#or
uartinit(0, 0, 9600) #UART port 0

#you get the picture



You'll have to make sure the kangaroo/sabertooth also have their baud rate set to match the ezb's change in baud rate... (via dips? Can you even change the Kangaroo's baud rate?)
.

#3

The Kangaroo would need to support a higher baud rate. The devices need to match. However, it is unlikely that a higher baud rate would make much difference. The messages just can't be that big. 9600 Baud is about 1200 characters per second. I don't know how big the messages are, but 1200 characters is an awful lot of position data.

Alan

#4

You can go up to 38400 I think on the sabortooth. Not sure on the kangaroo. It might be limited to 9600.

#5

Come to think of it, I am pretty sure the roo is hard set to 9600. There are no dip switches on the roo to set this.

#6

This is probably a dumb question but wouldn't you want to control a sabertooth or kangaroo in rc mode? Because isn't there a lot of controls already done by ez robot to command based on rc mode?

#7

RC mode doesn't seem to work on the sabertooth with the Ez-b (at least with the 2x25 that many of us have tried) . I don't have a Roo so haven't tried that. Might simplify things if it works.

Alan

#8

The Roo x2 is set to 9600 by default and as David said, it can't be changed in the board itself. But apparently, the baud rate can be changed using Dimention Engineering's DEScribe software for serial input. I'm not 100% sure about simplified serial though but I believe you can change it for both simple and packet serial using the software. Hope that helps Dave. I haven't tried it as I don't have a Sabertooth, but remember reading this when I was researching the tutorial.

#9

I thought that baud rate was just for setting the configuration but I could be wrong. I went away from the roo in favor of an arduino mini just for the cost savings on my project. A lot more coding, but it allows me to lock the arduino to try to protect my code.

#10

Dave, it's off topic - but you should plan a trip to visit ezrobot sooner than later so we can provide some advise on selecting hardware based on cost, availability and other factors such as power consumption, heat, and size. Big one of course is cost Smile