This is a really inefficient way to send bytes to a device. Try
using a much larger buffer to reduce the overhead per transfer.
I would think you'll see a significant improvement if you use
even 32k, but you should try transfers from 4k (the pagesize of
MacOS X) to 128k. You may also want to make sure your data is
aligned on a 64-byte boundary to put the maximum number of bytes
per transfer descriptor (a USB controller data structure used
inside the IOUSBFamily).
David Ferguson
Apple Computer
At 8:52 PM -0700 6/14/05, Eric Smith wrote:
I've got a full speed USB device, and am writing data in 64 byte
packets to a bulk endpoint. This is just sitting in a for loop,
doing a bunch of WritePipe() calls. My download speed over
several megabits is only about 500Kbps. I'm using Tiger, and a
dual 1.8 G5. I get about the same performance on a G4 iBook
running Tiger. The same USB device gets about 6Mbps download on
a windows-based machine. I did not write the windows code, so I
don't know any of the details of that implementation.
Any ideas or suggestions?
Thanks,
Eric Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden