|
From: Tim R. <ti...@pr...> - 2007-02-22 17:30:48
|
Jeremy Beker wrote: > I am having a problem that is probably a stupid error on my part. I > am trying to communicate with a smart card reader (I have tested this > with two models), and after claiming the interface, whenever I use > usb_bulk_write, I get the error "error submitting URB: No such file > or directory." ... > > ret = usb_bulk_write( > devHandle, > interface.bInterfaceNumber, > isTokPres, > len, > 5000); > USB data is written to an endpoint number. You are supplying the interface number. The interface number is probably 0, and endpoint 0 is always the control endpoint, not a bulk endpoint. -- Tim Roberts, ti...@pr... Providenza & Boekelheide, Inc. |