Re: [Libusbx-devel] Isochronous support via libusbk backend problem

2014-01-16 Thread Alan Stern
On Thu, 16 Jan 2014, Tim Roberts wrote: > > This is where things getting complicated. Interrupt or Bulk transfers > > scheduling > > are not time guarantied and 1mS period between two packets is sometime > > bigger resulting > > in very bad synchronization (verified with oscilloscope). > > No,

Re: [Libusbx-devel] Isochronous support via libusbk backend problem

2014-01-16 Thread Tim Roberts
GORAN RADIVOJEVIC wrote: > Sorry, my error: buffer size is 4096, packet size is 256. If I'm > correctly calculating: 125uS*12packets*256byte will give me 1.5MB/s transfer > rate > (3072bytes in 2mS period). The number of packets per request is not part of the bandwidth computation. If you need 1

Re: [Libusbx-devel] Isochronous support via libusbk backend problem

2014-01-15 Thread GORAN RADIVOJEVIC
Tim Roberts wrote: >You can't have 4096-byte packets in >high speed. You can have 3072 (1024-byte packets with 3 transfers per >microframe), which gives you 24MB/s. Sorry, my error: buffer size is 4096, packet size is 256. If I'm correctly calculating: 125uS*12packets*256byte will give me 1.5MB/s

Re: [Libusbx-devel] Isochronous support via libusbk backend problem

2014-01-15 Thread Tim Roberts
GORAN RADIVOJEVIC wrote: > Interval is 1 and I think something is wrong in calculation routine. > I did more tests and result is ~1.5MB/s for 3072 packet size (~2MB/s > for 4096). I'm confused by this statement. You can't have 4096-byte packets in high speed. You can have 3072 (1024-byte packets

Re: [Libusbx-devel] Isochronous support via libusbk backend problem

2014-01-15 Thread GORAN RADIVOJEVIC
Tim Roberts wrote: >What is the interval set to in your endpoint descriptor? If you were >only getting one interval per frame, that's exactly what you'd expect. >If you >have an interval of 1, then you should be getting 2 MB/s. Interval is 1 and I think something is wrong in calculation routine

Re: [Libusbx-devel] Isochronous support via libusbk backend problem

2013-12-30 Thread Tim Roberts
GORAN RADIVOJEVIC wrote: > > I'm trying to do ISO OUT transfer on Windows 7 64 bit and every > callback returns LIBUSB_TRANSFER_ERROR. > On Linux transfer is LIBUSB_TRANSFER_COMPLETED, I can read data from > my USB device (Atmel UC3A3256) but > performance is around 300KB/s for 256 ISO endpoint si

[Libusbx-devel] Isochronous support via libusbk backend problem

2013-12-29 Thread GORAN RADIVOJEVIC
Hi to all, I'm trying to do ISO OUT transfer on Windows 7 64 bit and every callback returns LIBUSB_TRANSFER_ERROR. On Linux transfer is LIBUSB_TRANSFER_COMPLETED, I can read data from my USB device (Atmel UC3A3256) but performance is around 300KB/s for 256 ISO endpoint size. Bulk and Interrupt t