I am now working on a project where I have to integrate a wireless module which supports baud rate of 230400
to Rasp Pi. I came to know that baud rate can be tweaked in Raspberry Pi. Is there any chance to send serial data from Raspberry pi at 230400
baud rate.
2 Answers
This page has a pretty good benchmark table as to the acceptable baud speed of the Raspberry Pi.
The short answer is it depends. The more detailed is that it really depends on your library and how you plan on interfacing. In the link, the author managed to max out a python connection around 44kHz while the C library maxed out at 22MHz.
I've read a couple projects where people have managed projects with a baud of 250,000. So you should definitely be within the range of possibilities. Just remember when dealing with such high speeds you really need to make sure your connection hardware is up to snuff.
available baudrate is upto 4000000 bits
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
}