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: Setting Baud Rate for custom USB Device - Can I?



Hi Stuart,

On Dec 20, 2007, at 2:22 AM, stuart norris wrote:

Hi Usb List,

I am new to USB land and I have some questions if
don't mind.

I have a custom USB device that expects to communicate
using serial IO that I can match using the
IOServiceMatching.  I can detect connection / removal
and this all works fine.

I wish to use this device from my own application
only.  I am using C and Carbon.

This is where I am confused.

I need to write to the device using a serial baud rate
or 57.6k.  Without installing a driver - can I
programatically configure the USB device to
communicate at 57.6k baud and read and write to the
device?

Or do I need a MAC driver for this?

s/MAC/Mac/ ;-)

If you wanted the device to show up as a serial port available to any client on the system, you'd need a kernel driver. But since you're just using the device from your own application, you can use the IOUSBLib APIs to communicate with the device directly, assuming you know how that device works from a USB perspective.

HTH,
--gc
____________________________________________________________________
Garth Cummings					 email@hidden
Sr. Software Engineer
Apple Developer Technical Support

<http://developer.apple.com/technicalsupport>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >Setting Baud Rate for custom USB Device - Can I? (From: stuart norris <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.