Mailing Lists: Apple Mailing Lists

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

Pipes Question



Morning All:

A question about pipes if I may.

I seem to be having a problem with Read and Write pipes. I'm trying to write some data into a device, and then get back some data from the device. Since I'm using WritePipeAsync and ReadPipeAsync I've got a gut feeling that something's not completing (or a pipe is stalling?). In some tracing code, I see a bunch of writes, a bunch of reads, but the completion routine is called later.

Is there a way of telling if a pipe has stalled? I was looking around the web and saw some examples where there were mentions to ClearPipe and ResetPipe, but in the example, it looked like they were always calling ClearPipe and ResetPipe. Is that a workaround for a bug? Or should I are their some gotcha's with WritePipeAsync/ReadPipeAsync?

Also, in this code that I inherited, I notice that they are using endpoints 1 and 2. When I run up UsbProber, I see the end points are 0x01 and 0x81. I know that the high order bit represents 'In'. Is there are relationship between the endpoints (i.e. I should be using 0x01 and 0x81 vice 1 and 2?)

Thanks in advance for your time


John Cebasek email@hidden _______________________________________________ usb mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb Do not post admin requests to the list. They will be ignored.



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.