On Wed, 11 May 2005, Marco Schramel wrote:

> Hi all,
> 
> we use linux 2.4.25. Our device has 2 endpoint (bulk in/bulk out). I am 
> writing a device driver which serves the bulk endpoints periodically. 
> Exactly i start a timer. If this timer expires the timer service will send a 
> write urb to the device. Immediately after the write access i have to read 
> out some datas of the device over the bulk in endpoint.
> If the driver calls the "usb_bulk_msg()" function the whole system hangs 
> without return.
> But this code has to work because the functions are successful if they are 
> called manually over ioctl.
> 
> Are ther any known problems with generally usb transfers and timers?

There are no known problems in general, although 2.6 is definitely much 
more reliable than 2.4.

Your code doesn't wait for the write URB to complete before calling 
usb_bulk_msg.  Could that be part of the problem?

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to