So what is the best way to constantly read packets from the usb device? My device sends a 32byte report periodically. Is it safe to call usb_submit_urb() from my hqct_read_callback function? Or should I use a kthread with usb_bulk_msg()?
On 5/20/06, Alan Stern <[EMAIL PROTECTED]> wrote:
On Fri, 19 May 2006, Greg KH wrote: > > For this reason I am suggesting a usb_intr_msg() function which is > > written as usb_bulk_msg() but with usb_fill_int_urb() instead of > > usb_fill_bulk_urb(). > > Take a look at how usb_fill_int_urb() and usb_fill_bulk_urb() are > defined, they are just simple "fill up the structure" functions, and are > not different. That's not quite right. There is an important difference between them: interrupt URBs use the "interval" member. But it shouldn't matter. usb_bulk_msg() checks the endpoint type. If it is an interrupt endpoint then usb_fill_int_urb() is used, otherwise usb_fill_bulk_urb() is used. Alan Stern
------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel