mechevere/picocom

Picocom for higher valid baud rates

Opened this issue · 2 comments

I made some embedded systems for some applications.
Because of the system clock, I need to use some other baud rates for serial 
port communication.

I have reference the linux source code: 
https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/termbits.
h which will be included by "termios.h".

There are more valid baud rate to use.  I also checked history of the file and 
found it was updated since Oct 05, 2012.

So, I checked out the repository and modified the codes and made the patch file 
as the attachment.

Original issue reported on code.google.com by chienhun...@gmail.com on 14 Feb 2014 at 3:45

Attachments:

Higher baud rate includes: 500000, 576000, 1000000, 1152000, 1500000, 2000000, 
2500000, 3000000, 3500000, 4000000.

Original comment by chienhun...@gmail.com on 15 Feb 2014 at 7:57

I had the same problem (need to use different baud rate for embedded systems) 
and I ended up exactly with the same solution... so no need for me to submit 
the patch again.
It would be nice to have it included in the main release.

FYI, I tried to implement a custom speed option as described in:
http://stackoverflow.com/questions/12646324/how-to-set-a-custom-baud-rate-on-lin
ux

Unfortunately it doesn't seems to work (tested with FTDI USB adapter).

Original comment by fabrizio...@gmail.com on 19 Jun 2014 at 3:43