Maximum Baudrate of UART in Raspberry Pi 3
Posted: Mon Sep 04, 2017 10:26 am
Hello every one, I saw a lot about this subject but still there are many understatements. Some people are giving us some numbers like 115200/921600 as maximum baudrate but all this is not true. I got 4000000 baudrate and still I'm thinking that RPi3 can do more. RPi3 have quite strong CPU. In CPU documentation we have something like that : http://imgur.com/a/IaT04 
So there is possibility to get 25Mbits/sec. To transfer files via uart I'm using PySerial lib in Python. There is support up to 4Mbits baud rate, but can we do more ? Inside this lib we got something like that :
I have no idea what are this numbers next to baudrate value and how to calculate it, but maybe we can overwrite this lib and add more values like 5Mbit/10Mbit and squeeze as much as RPi can. What do you think ?
So there is possibility to get 25Mbits/sec. To transfer files via uart I'm using PySerial lib in Python. There is support up to 4Mbits baud rate, but can we do more ? Inside this lib we got something like that :
Code: Select all
baudrate_constants = {
0: 0000000, # hang up
50: 0o000001,
75: 0o000002,
110: 0o000003,
134: 0o000004,
150: 0o000005,
200: 0o000006,
300: 0o000007,
600: 0o000010,
1200: 0o000011,
1800: 0o000012,
2400: 0o000013,
4800: 0o000014,
9600: 0o000015,
19200: 0o000016,
38400: 0o000017,
57600: 0o010001,
115200: 0o010002,
230400: 0o010003,
460800: 0o010004,
500000: 0o010005,
576000: 0o010006,
921600: 0o010007,
1000000: 0o010010,
1152000: 0o010011,
1500000: 0o010012,
2000000: 0o010013,
2500000: 0o010014,
3000000: 0o010015,
3500000: 0o010016,
4000000: 0o010017
}