| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Unfortunately the current implementation of the IOSerialFamily (i.e. /dev/tty.*) validates the baud rates and wont allow non-standard rates through. There is currently no workaround for this limitation short of rolling your own IOSerialFamily.Godfrey,
Godfrey
On Oct 5, , at 12:38, Kenny Millar wrote:
I asked this question over on carbon-dev and was directed to this list....
An application I'm writing (in carbon) makes extensive use of a serial port. I'm using a USB-Serial device, which works fine at all 'normal' baud rates.
Does anyone know how to set the divisor for the serial port, so I can use a 'non-standard' baud rate?
Under linux I would do something like this....
sinfo.custom_divisor = sinfo.baud_base / RequiredBaud ;
ioctl(fd, TIOCSSERIAL, &sinfo)
But can't find anything in the ioctl documentation about this type of thing on Mac OS X
Can anyone shed any light on this for me!?!
Fuurther info:
I know the device itself supports the non-standard rates
because I have it working already under, ahem, Windows.
-Kenny
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden This email sent to email@hidden
| References: | |
| >Serial port question (From: Kenny Millar <email@hidden>) | |
| >Re: Serial port question (From: Godfrey van der Linden <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.