On 23 Feb 2006, deepak madhu wrote:
> Hi Stern,
> I was going through the mail posted in Linux-usb-users in which Antwort
> was asking about how to transfer 307200 bytes of data through an bulk
> enpoint having 512 size.I am also facing problem with this.My usb device
> endpoint is having 64 size when try send the data through this endpoint i
> am able to send the data and callback handler is called if only the size
> of data is 64 .If am trying to send the data more than 64 urb will be
> submitted but it will not call the callback handler.Can you please tell me
> why the callback handler is not called if we try to transfer more than 64
> bytes of data.
Which kernel version are you using?
If your completion handler isn't getting called, there can be only two
possible reasons: (1) Your original call to usb_submit_urb() failed, or
(2) the data was still being sent to the device. Maybe the device wasn't
ready to receive 307200 bytes of data yet.
> And also while replying to Antwort you have said that we can submit the
> urb's one after the other i did not know how to do can you please help me
> in this by sending any sample code.
if (usb_submit_urb(urb1, GFP_KERNEL) != 0) {
printk("Error submitting urb1\n");
return;
}
if (usb_submit_urb(usb2, GFP_KERNEL) != 0) {
printk("Error submitting urb2\n");
return;
}
Alan Stern
-------------------------------------------------------
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users