You are here

Maximum possible Baudrate in UART?

4 posts / 0 new
Last post
nlabs
Offline
Last seen: 1 month 2 weeks ago
VESC Original
Joined: 2017-08-21 17:38
Posts: 4
Maximum possible Baudrate in UART?

Hi, 

 

I'm testing high rate current control over 1kHz using USB-Serial connection.

For testing, I changed the baudrate in VESC-TOOL. I tested from 1152000bps baudrate.

In my case, the connection was successful at below bps.

115,200 bps : ok

230,400 bps : ok

345,600 bps : X

921,600 bps : ok

I was surprised when 921,600 bps works even the 345,600 bps is not working.

Do you know why and Is there any body who knows the maximum baudrate in USB-Serial?

 

And also it will be good to know what is the maximum possible baudrate in UART.

In the STM32F4 datasheet, It seems that the UART supports 5.25Mbps, is it right?

Thanks 

 

921600.png

benjamin
Offline
Last seen: 8 hours 3 min ago
VESC Original
Joined: 2016-12-26 15:20
Posts: 320

If you use the USB port on the VESC, the baud rate is actually ignored and the connection runs as fast as USB1.1 allows. If you use a USB-Serial adapter and connect over UART the baudrate you enter matters.

Caustic_Zinc
Offline
Last seen: 2 days 17 hours ago
VESC Free
Joined: 2019-01-20 20:35
Posts: 10

Do you need to change firmware to change baud rate? *EDIT no

cnd
Offline
Last seen: 5 days 10 hours ago
VESC Free
Joined: 2018-02-23 14:00
Posts: 2

Not all hardware is able to talk all baud rates - this explanation has more info:

https://github.com/grbl/grbl/issues/837

It all depends on the frequency of the crystal controlling each device, and the serai divider MCU circuitry

For an 8mhz 3.3v Arduino Prio Mini, for example, 115200 is one of the worst possible baud rates - the 3.5% error makes it extremely unreliable.