I am using devio.c interface to talk to usb device. I
cannot make the SUBMIT_URB for bulk-in endpoint work.
Here is what I am doing in my user space app.
---Open devnode, read descriptors, send ioctl for "set
configuration", I get the return values 0 (success).
----Set the realtime signal hander for "submiturb",
and issue ioctl "submiturb" for bulk-out endpoint with
data. Signal handler gets invoked with status bit
field set to 0 (success) and I suppose it also means
this transaction is complete. And I notice via bus
tracer that data is moving to the device. 
---Now issue, "sumbiturb" ioctl for bulk-in endpoint
(I know my device has data to send back).  Signal
handler gets invoked with status bit field set to
0(success), but the user level buffer (which is sent
as parameter to usbdevfs_urb) is empty. Also, I notice
in the bus trace that there is no data(or zero data)
coming from device to host. This tells me I am not
issuing submiturb right. 

I wanted  similar  to asynchronous support and hence I
cannot use the ioctl "USBDEVFS_BULK". Is there any
other setup  I should do to make "sumiturb" ioctl
work? or should I issue any other ioctl in between or
from within signal handler(I cant understand if the
ioctls "setinterface" and "reapurb" has any relevance
to this context). 

It seems this is a basic question(I cant find answer
in archives). 

how can I get data from device using  "submiturb"
ioctl?  Thanks in advance for the response.

kris


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to