Using higher baud rates (921600) successfully?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
Hyperion
Posts: 13
Joined: Wed Oct 16, 2019 9:34 am

Using higher baud rates (921600) successfully?

Post by Hyperion » Tue Mar 10, 2020 3:03 pm

Anyone tried using higher baudrates for the UART, successfully? I would like to approach at least 1Mb/s transfer rate so I compiled the firmware with

Code: Select all

CONFIG_ESP_CONSOLE_UART_BAUDRATE=921600
and initialized the baud rate with the same number but it seems that the REPL is unusable when I go any higher than 230400. I don't even need to use the REPL, I have my own simple command-based communication protocol that I use.

I'm on the ESP32.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Using higher baud rates (921600) successfully?

Post by jimmo » Mon Mar 16, 2020 5:18 am

How are you accessing this UART (to access the REPL)?

i.e. is it a self-contained board with a USB/UART adaptor, or are there breadboard wires or long cables carrying the UART signal?

Does the USB/UART adaptor support the higher baud rate?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Using higher baud rates (921600) successfully?

Post by pythoncoder » Tue Mar 17, 2020 8:25 am

@Hyperion If you're not using SPIRAM you could use UART2 on pins 16 and 17. This would avoid any complications with REPL or USB.
Peter Hinch
Index to my micropython libraries.

Post Reply