views:

888

answers:

2

Is libusb the preferred method to talk to a device over USB (using AT commands) on OS X these days?

Is there any high level equivalent in cocoa?

+6  A: 

On OS X, drivers are written using the IOKit and a subset of C++. More specifically, for USB devices, you probably want to start with Apple's USB Device Interface Guide and browse the USB parts of Hardware and Drivers section of the Mac OS X Core Library documentation set in XCode. (Edit: The latter resource is also available online.)

A: 

I have written driver with libusb that work on both Windows XP, Windows 7, Linux and Mac OS X, so I would say that libusb is a good choice if cross-plattform compatibility is important to you.

trondd