Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read Pipe Asynchronous Question



On 22 avr. 05, at 06:23, She Jian Chia wrote:

 Thanks for replying, the endpoint is bulk type. I am not sure whether this 4096 is the maxpacketsize, but i am sure that the camera is reading the data at 4096 bytes per packet. And when i use the USB sniffer on windows, i get the packets with the size of 4096.

The obvious question is: do you immediately fire a new Read from inside the read completion callback? that's what you should do for maximum performance.


Also, you may want to try increasing the read size. Depending on your device, this may or may not be reliable (I've been fiddling with lots of various Palm handheld, and I ended up with a small read size because some models have bugs others don't have and tend to freeze on large reads).

So there, you're very much subject to the features/bugs on the camera you're talking to.

Also, you should check whether you did all the initializations exactly as Windows does them. I don't know your device, but it's easy to forget sending a control packet at init time that will put the device in a faster data transfer mode...

--
Florent Pillet                  http://www.florentpillet.com
Freelance software developer/consultant - Palm OS & Mac OS X
ICQ: 117292463                Skype: callto://florent.pillet


_______________________________________________ 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
References: 
 >Re: Read Pipe Asynchronous Question (From: She Jian Chia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.