> If I take the default package size 20 value to send it to my bluethooth > device through USB, it fails because the Linux > driver doesn't properly terminate a USB OUT transfer with a zero length > packet when the transfer size is an integer multiple of the packet size.
Are you using the USB_ZERO_PACKET in transfer_flags for these bulk transfer URBs? If not, it's a bug in whatever bluetooth code you're using. If so, it's a previously unsuspected bug in one of the host controller drivers (which one are you using). USB is a packet oriented transport. If your application protocol is adopting a policy that logical records always end with short packets (some do, others stick to counted bytes), then the Linux-USB API has direct support for that policy, but you have to ask it to be used. Otherwise your application stack has to track packet boundaries itself, and write zero packets as needed, rather than expecting the USB stack to automagically insert them. - Dave _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel