lemanhtrung / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Custom baudrate for linux #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello.
I'm using QextSerialPort in a project in order to communicate with a FTDI stick.

For high speed (115200bauds), I need to use a custom baudrate (111111). Under 
Windows, I made a new case entry in QextSerialPort::setBaudRate() from file 
win_qextserialport.cpp with Win_CommConfig.dcb.BaudRate=111111;

How can I make this under Linux ?
What is the value for B115200 in cfsetispeed(&Posix_CommConfig, B115200) ?
Is this an enum type (1,2,3...) or a value like under Windows (B115200=115200) ?

Thanks for your help !

Original issue reported on code.google.com by Kristen....@gmail.com on 21 Jun 2011 at 2:40

GoogleCodeExporter commented 9 years ago
maybe we need an mechanism to support custom baudrate.

Original comment by dbzhang...@gmail.com on 10 Nov 2011 at 2:54

GoogleCodeExporter commented 9 years ago
Thanks

Original comment by dbzhang...@gmail.com on 16 Mar 2012 at 8:24