|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Tue, 9 Feb 2010 09:33:49 -0800, email@hidden wrote: > I have a full-speed, custom HID, I send it a buffer of 8 bytes and it > sends me a buffer of 64 bytes at least one per second but up to one > every 1msec if it has something to say - I interpret these bytes so, > in terms of TN2187, I use "raw data". I didn't see "raw data" mentioned anywhere in TN2187… > I followed the outline described in TN2187 (see below or attached) but > my software does not see any input reports. I have an Ellisys > Explorer looking at USB and they are definately there. > Am I missing a step? possibly… > Does anyone have an example that works? Tons; hardly a month goes by that I don't throw one together to test a developers device; > I started with "HID LED test tool" and have made edits to that: Probably your first mistake; that sample doesn't use/have a runloop so callbacks aren't going to be dispatched. > I get a Reference to the HID manager > I create a Matching Dictionary with my VID and PID > I open the HID manager and it finds my device > I print out the VID and PID as a check > I set up a callback for the InputReport May we see the code you used to register your callback? Nevermind… (it's was after your email)… it looks fine… and… no runloop. > I schedule the HIDManager into the RunLoop (to handle the Callback) > I send a HID output report - this works, it then starts sending me > input reports > I send another HID output report - this works too > I then wait around (will do more stuff later) Your callbacks aren't being dispatched. Change the "while (1) { usleep(1000000);}" to "CFRunLoopRun();". > Looking through the other examples, some create Input Queues. I > haven't done that. Is that needed? Not necessary; just need a runloop. > Have I missed something dumb? Just a running runloop… ;-) > I am working through TN2187 "New HID Manager APIs for Mac OS X version > 10.5" and, while it is very good, /blush… > it is missing some key examples. What do you need? I've got tons of examples; most are just too (vendor) specific to publish as generic (USB/HID) samples… > Many thanks, John -- Enjoy, George Warner, Schizophrenic Optimization Scientist Apple Developer Technical Support (DTS) |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.