pafra88 / qextserialport

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

Add custom Baudrate for MacOS #145

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What new feature(s) would you like to see included?
I want to use a buadrate of 460800 under MacOS, attached
patch is how I implemented it.

Original issue reported on code.google.com by yangyj...@gmail.com on 16 Aug 2012 at 1:50

Attachments:

GoogleCodeExporter commented 8 years ago
Hi yanggj,

Thanks for your work. But this patch doesn't work as expected, so we can't 
accept it at present.

If we want to support custom baudrate for MacOS, IOSSIOSPEED should be used, 
for example.

>    speed_t speed = 460800; // Set 460800 baud
>    if (ioctl(fileDescriptor, IOSSIOSPEED, &speed) == -1)

(from: http://lists.apple.com/archives/carbon-dev/2007/Nov/msg00453.html)

Original comment by dbzhang...@gmail.com on 20 Aug 2012 at 3:40

GoogleCodeExporter commented 8 years ago
This patch worked perfectly for me using Mac OSX 10.8 Mountain Lion. Previously 
we couldn't use 460800 baud rate, but after applying this patch, it works :).

Would be nice if it could be merged into the mainline!

Thanks

Original comment by oddess...@gmail.com on 12 Oct 2012 at 12:41

GoogleCodeExporter commented 8 years ago
Thanks

Original comment by dbzhang...@gmail.com on 9 Dec 2012 at 2:46

GoogleCodeExporter commented 8 years ago
could please write a instruction on how to use the patch?

Original comment by wuyangjo...@gmail.com on 25 Jul 2014 at 7:21