Actually, I got setInterruptReportHandler to work in the prototype, thanks
for help in pointing me in the correct direction.
Philip Lukidis
-----Original Message-----
From: Philip Lukidis
Sent: Wednesday, October 26, 2005 9:56 AM
To: Rob Yepez
Cc: email@hidden
Subject: RE: question for HID access
Hi Rob, thanks for your reply.
Before diving into that document, I tried put together a quick prototype
which would open the interface you mentioned. This worked, but getReport
failed with a stall, which I clearly saw on the analyzer. I talked with the
hardware guy for this device, and he was not sure that GET_REPORT is
supported by the firmware. This device was made to work on the PC, and
whenever there is a control change the data is sent on the interrupt pipe
(even if there is no control change, data is sent periodically). He felt
that perhaps GET_REPORT *may* work, but on index 5 and not index 0 (I saw
index 0 on the bus analyzer). Is there any way to force a request on index
5 instead of index 0?
Also, will setInterruptReportHandler work, even if GET_REPORT does not?
thanks for your reply,
Philip Lukidis
-----Original Message-----
From: Rob Yepez [mailto:email@hidden]
Sent: Tuesday, October 25, 2005 7:53 PM
To: Philip Lukidis
Cc: email@hidden
Subject: Re: question for HID access
Hi Philip,
You will actually have to use the HID Manager instead of the USB lib
to access the device. The following web page should give you a quick
run down as to how to interact with the HID Manager:
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/HID/
intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40000970-CH202
The IOKit/hid/IOHIDLib.h header is also a good place to look.
Since you are dealing with Interrupt reports, you will want to focus
on using IOHIDDeviceInterface::setInterruptReportHandler.
- Rob
On Oct 25, 2005, at 12:18 PM, Philip Lukidis wrote:
> I've since found docs on Apple's site, and have cobbled together
> some code
> to open my device interface. Unfortunately, it seems that somebody
> has
> already opened the interface, and enforced exclusive access.
>
> Does this mean that I have to write a codeless kext? If so, what
> are the
> drawbacks with this approach? If anybody could provide some
> insight, I
> would appreciate it.
>
> thanks,
>
> Philip Lukidis
>
> -----Original Message-----
> From: Philip Lukidis
> Sent: Monday, October 24, 2005 9:38 AM
> To: email@hidden
> Subject: question for HID access
>
>
> Hello. I'm relatively new to MacOSX. I have a composite USB
> device, which
> has several HID interfaces. I need to poll getReport for one or
> more of the
> interfaces, which have interrupt endpoints. For Windows this was
> really
> easy; all I had to do was make a USB filter driver, which would
> intercept
> the getReport data on the way up the USB stack.
>
> How should I approach this problem on MacOSX? I need to support
> 10.3.0 and
> up.
>
> thanks for any ideas,
>
> Philip Lukidis
> _______________________________________________
> 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
> _______________________________________________
> 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
_______________________________________________
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
_______________________________________________
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