Mailing Lists: Apple Mailing Lists

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

Fwd: Forcing the HID-USB driver to ignore an external 'keyboard'.



Forwarding from email@hidden since someone
mentionned that this one would be more appropriate. Apologies for the
dual-list spam.

---------- Forwarded message ----------
From: Chris Lavoie <email@hidden>
Date: Nov 29, 2005 4:49 PM
Subject: Forcing the HID-USB driver to ignore an external 'keyboard'.
To: email@hidden


I'm trying to write a libusb (http://libusb.sourceforge.net/) based
'driver' for a Nostromo n52 SpeedPad
(http://catalog.belkin.com/IWCatProductPage.process?Merchant_Id=&Section_Id=2071&pcount=&Product_Id=157024
; there's an existing Mac OS X driver from the vendor, which is not
quite good enough for my purposes). The n52 is a nice HID keyboard as
far as USB is concerned.

I've got the device detected and useful with the builtin HID driver;
so I know it works. As a joystick, it's doing great in games.

Problem is that when my program tries to access the device from
userland, it detects the device, tries to connect to the device and
gets an error from the device when trying to initialize it. I'm
assuming that this because the HID driver has already taken over the
device.

The userland program also works great under linux 2.6, once I tell the
driver to ignore the device. It displays the exact same symptoms if I
don't.

Question is:

Is it really likely to be the HID driver, and if so, how can I tell
the HID driver to ignore a specific device so I can access it raw from
userspace using libusb?

(Also, lemme know if I'm talking to the wrong mailing list, please :)

Have fun,
Chris++ (aka ChrisL)


--
Have fun,
Chris++ (aka ChrisL)
 _______________________________________________
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



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.