Mailing Lists: Apple Mailing Lists

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

Re: Sending generic USB messages?



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:
http://lists.apple.com/mailman/options/darwin-dev/robertpalmerjr% 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: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Sending generic USB messages? (From: email@hidden (Peter Seebach))



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.