Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what decides allowable serial speeds?



Sean,

On Jul 25, 2006, at 7:01 PM, Godfrey van der Linden wrote:

Actually you don't have to, there is an ioctl that will allow you to ask the driver for any random speed.

It should be available on any 10.4.x system.

#include <IOKit/serial/ioss.h>

The ioctl is IOSSIOSPEED.  It takes a single speed_t argument.

Godfrey

Also, the current version of SerialPortSample <http://developer.apple.com/samplecode/SerialPortSample> shows how to use this ioctl.

--gc


On 26/07/2006, at 4:06 AM, Sean McBride wrote:

Hi all,

I notice that the highest speed termios.h defines is B230400.  I have a
serial device that supports higher speeds such as 921600.  Is it not
present in termios.h because it is unsupported?  tcsetattr() returns
success after setting the speed to 921600.  Do the supported speeds
depend exclusively on the serial hardware (USB-serial adapter these
days)?  Or does the OS have influence on which speeds are allowed?

I ask all this because my device works at many speeds, except the
highest speed it supposedly supports.  I'm trying to figure out if this
is the device's fault, the OS's, or the USB-Serial Adapter's.

Thanks,

PS: I hope this list is appropriate, sorry if not.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

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:

This email sent to email@hidden

____________________________________________________________________
Garth Cummings  email@hidden
Sr. Software Engineer
Apple Developer Technical Support



 _______________________________________________
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: 
 >what decides allowable serial speeds? (From: "Sean McBride" <email@hidden>)
 >Re: what decides allowable serial speeds? (From: Godfrey van der Linden <email@hidden>)



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.