Re: Sending generic USB messages?
Re: Sending generic USB messages?
- Subject: Re: Sending generic USB messages?
- From: Robert Palmer Jr <email@hidden>
- Date: Wed, 3 Aug 2005 08:20:54 -0400
Peter,
There is some sample code on Apple's site for connecting to a USB
device and talking to it. Don't remember the name/section - if you
can't find it, drop me a line privately and I'll dig up the name.
It's pretty simple, only caveat is that the sample code runs in
application space, not driver space, so the USB device has to be
plugged in when the search code executes or it won't find it. It
will let you do the read/write thing - that's what I'm doing.
Robert
On Aug 2, 2005, at 6:26 PM, Peter Seebach wrote:
In message <email@hidden>, Garth
Cummings wri
tes:
While it's true that other OSes treat HID as a generic USB byte
stream, this behavior isn't provided for in the USB specification.
Apple tries to stick pretty close to the USB spec.
The problem is that I have a HID device which works in only one
way: Send
a five-byte packet, receive a 5-byte response. It's not a keyboard
or mouse
or anything like it, and there's no way to get past this.
Anyway, I'll see about the USB lists. It would suck, though, if
every other
OS I'm looking at targeting let me write the "driver" in 5 minutes
on top
of the existing HID support, and Darwin made me reinvent the wheel.
-s
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
-----------------------------
Robert G. Palmer, Jr.
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden