| >>>>> "victor" == victor writes:
victor> Can't you use select() or even poll() ? Isn't there a file descriptor?
victor> Victor
Actually no. On Linux it is not a file; is on Windows and it is a pipe
on OSX. There is a timeout parameter to the usb_bulk_read call but I m not
sure what it does, or what units even (think milliseconds). Worried
about reading partial data, or what happens on zero timeout. The
library sets this to 1000 hard, so there are long delays when used at
k-rate!
Really not sure how to continue, short of grabbing a new thread.....
victor> ----- Original Message -----
victor> From: "jpff"
victor> To:
victor> Sent: Sunday, August 02, 2009 6:54 PM
victor> Subject: [Cs-dev] Any USB experts on the list?
>> I am trying to fix the p5glove code and I think the problem I have is
>> that it always reads data from the glove even if there is none ready,
>> giving delays. Does anyone understand the USB-HID interface enough to
>> tell me how to ask if there is data ready?
>> ==John ffitch
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |