Discussion:
[Libusb-devel] Mac OS X codeless kext for HID device
Xiaofan Chen
2011-06-01 06:34:44 UTC
Permalink
We have a lot of discussions here about the HID device
under Mac OS X and it is reported that the codeless kext
which used to work up to Mac OS X 10.6.4 no longer
works under 10.6.6.

It seems to me that there should be a way to do this.

I just read the following page from Apple and they seem
to indicate that for matching a USB device, idVendor + idProduct (+ bcdDevice)
will be sufficient. For matching a USB interface, then
idVendor + idProduct + bInterfaceNumber + bConfigurationValue (+ bcdDevice)
will be necessary.
http://developer.apple.com/library/mac/#qa/qa1076/_index.html
http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptAnatomy/kext_anatomy.html

Maybe the existing kext does not cater to the interface matching
case.

I am just curious here as I do not have a Mac. I have only
one Apple device which is the newly got iPad 2 (which is
very nice).
--
Xiaofan
Xiaofan Chen
2011-06-01 07:31:24 UTC
Permalink
Post by Xiaofan Chen
We have a lot of discussions here about the HID device
under Mac OS X and it is reported that the codeless kext
which used to work up to Mac OS X 10.6.4 no longer
works under 10.6.6.
It seems to me that there should be a way to do this.
I just read the following page from Apple and they seem
to indicate that for matching a USB device, idVendor + idProduct (+ bcdDevice)
will be sufficient. For matching a USB interface, then
idVendor + idProduct + bInterfaceNumber + bConfigurationValue (+ bcdDevice)
will be necessary.
http://developer.apple.com/library/mac/#qa/qa1076/_index.html
http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptAnatomy/kext_anatomy.html
Maybe the existing kext does not cater to the interface matching
case.
I am just curious here as I do not have a Mac. I have only
one Apple device which is the newly got iPad 2 (which is
very nice).
According to the following posts, Mac OS X 10.6.7 seems to fix the
issue.
http://osx-launchpad.blogspot.com/2010/11/launchpads-toolchain-version-20101112.html
http://osx-launchpad.blogspot.com/2010/11/breathing-led-effect-with-launchpad.html?showComment=1302269771023#c5723817088232840420

Example codeless kext for USB Composite Device with an
HID interface.
http://mspdebug.sourceforge.net/misc/ex430rf2500-kext.zip
It is an HID+CDC-ACM device. The HID interface is the
debug interface.
http://mspdebug.sourceforge.net/usb.html

Another thread is of some interests.
http://lists.apple.com/archives/usb/2010/Nov/msg00056.html
For some device, Apple engineers suggest to use
com.apple.kpi.iokit instead of com.apple.kernel.iokit
for the CFBundleIdentifier field.

Now we need some confirmations from the Mac users to
see if the codeless kext works again under Mac OS X.
--
Xiaofan
Vitali Lovich
2011-06-06 19:41:11 UTC
Permalink
It works on 10.6.7. I don't remember any problems with 10.6.6, but it
was only out for a short time IIRC.
Post by Xiaofan Chen
Post by Xiaofan Chen
We have a lot of discussions here about the HID device
under Mac OS X and it is reported that the codeless kext
which used to work up to Mac OS X 10.6.4 no longer
works under 10.6.6.
It seems to me that there should be a way to do this.
I just read the following page from Apple and they seem
to indicate that for matching a USB device, idVendor + idProduct (+ bcdDevice)
will be sufficient. For matching a USB interface, then
idVendor + idProduct + bInterfaceNumber + bConfigurationValue (+ bcdDevice)
will be necessary.
http://developer.apple.com/library/mac/#qa/qa1076/_index.html
http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptAnatomy/kext_anatomy.html
Maybe the existing kext does not cater to the interface matching
case.
I am just curious here as I do not have a Mac. I have only
one Apple device which is the newly got iPad 2 (which is
very nice).
According to the following posts, Mac OS X 10.6.7 seems to fix the
issue.
http://osx-launchpad.blogspot.com/2010/11/launchpads-toolchain-version-20101112.html
http://osx-launchpad.blogspot.com/2010/11/breathing-led-effect-with-launchpad.html?showComment=1302269771023#c5723817088232840420
Example codeless kext for USB Composite Device with an
HID interface.
http://mspdebug.sourceforge.net/misc/ex430rf2500-kext.zip
It is an HID+CDC-ACM device. The HID interface is the
debug interface.
http://mspdebug.sourceforge.net/usb.html
Another thread is of some interests.
http://lists.apple.com/archives/usb/2010/Nov/msg00056.html
For some device, Apple engineers suggest to use
com.apple.kpi.iokit instead of com.apple.kernel.iokit
for the CFBundleIdentifier field.
Now we need some confirmations from the Mac users to
see if the codeless kext works again under Mac OS X.
--
Xiaofan
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Libusb-devel mailing list
https://lists.sourceforge.net/lists/listinfo/libusb-devel
Loading...