Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: USB device driver; how to start
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB device driver; how to start



Lance,

If you're just getting started, you don't need USB Prober.  Use
IORegistryExplorer (/Developer/Applications/IORegistryExplorer.app) to
examine the device's properties.  I used this to get enough of the
attributes to set up access to the device.  It's not as nice as USB Prober
but it does work.  That might keep you busy until the Apple team releases
the next DDK. <grin>

My favorite example was USBSimple Example
(/Developer/Examples/IOKit/usb/USBSimple Example) but reading through  all
of them helped get started.  This one got me working with a command line
tool that could talk to the device.

USBSimple + IORegistryExplorer will give you almost everything USB Prober
does except the USB Logger functionality.  I think we have to wait for the
next DDK for that (I think there may have been a recent message to the list
about this).

The Cocoa app I used as a starting point was one of the firewire DDK
examples (FWSampleProject HP).  It too provided a good starting point for
building a UI around the device.

I'd recommend you just get your USB code working within an App and later
package the code into a driver.  It's much easier to debug this way.

If you're still stuck, drop me a note.

Anup
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: USB device driver; how to start (From: Lance Bland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.