On Fri, Jan 11, 2013 at 11:17 PM, Trey Harrison
<harrisondigitalme...@gmail.com> wrote:
> Greetings,
>
> I've got a usb dongle type device which I have used for a few years
> without problems on OSX 10.6 and 10.7. Even machines upgraded from
> 10.7 to 10.8 seem to be fine. But brand new fresh machines running
> 10.8 fail work with these dongles due to an error somewhere in
> libusb_claim_interface.
>
> I really need to get to the bottom of the issue - some googling has
> indicated that I should try detach_kernel_driver before claiming the
> interface, but I see in the libusbx source code that call is not
> implemented. What steps can I take towards resolving the issue? I
> suppose stepping through the libusbx code itself to see what exact OSX
> call is failing is probably the best approach?

That detach call only works under Linux. There is no way to
do it programmatically under Mac OS X. So you need to find
where there is a kernel driver attached to your device (or the
interface if it is a USB composite device).

> I wanted to bring it up here first anyway just to see if anyone else
> is having issues with libusbx on 10.8 that they were not having with
> 10.7/10.6?

It does not seem to be a libusbx problem, rather if there is
a kernel driver attached to the device in 10.8 but not in
10.7/10.6, it is a change in Mac OS X.

The way to deal with the driver detaching under Mac OS X
is to write a codeless kext.

Ref:
http://libusbx.1081486.n5.nabble.com/Libusbx-devel-No-way-to-programmatically-unload-a-driver-and-grab-the-IOUSBDevice-or-IOUSBInterface-e-td515.html


-- 
Xiaofan

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to