Read Uart Speed

soleyj
Posts: 4
Joined: Mon May 08, 2023 11:21 am

Read Uart Speed

Postby soleyj » Mon May 08, 2023 11:25 am

Hello,

I am not able to read at 2.5mbits speed for the uart.

Here is the code:

Serial2.begin(2500000);
Serial2.setRxBufferSize(40000);

void read_uart()
{
uint8_t buffer[4096];
int n = Serial2.readBytes(buffer, sizeof(buffer));
if (n > 0) {
Serial.println(buffer[0]);
}
}

12900kb, last 100-300 miliseconds to be read.

I have check this link https://docs.espressif.com/projects/esp ... figuration, but I can not find the way to set this to arduino.

Anyone has reach this reading speed for the uart with arduino?

Thanks

Who is online

Users browsing this forum: Majestic-12 [Bot] and 147 guests