Mailing Lists: Apple Mailing Lists

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

Writing and Reading from USB interface



Hi, 

I have a PCMCIA Card that maps to USB. I am writing to
the bulk OUT interface pipe and it say it is 
succeeding by returning kIOReturnSuccess. However,
when I try read from the IN Pipe using ReadPipe
function, the function never comes back and the USB
Device can not be opened anymore unless I restart the
machine. In this context my questions are: 

1. How can I verify that the device is being
successfully written to? 

2. How can prevent my program from going into an
unknown state. I can afford to read the response in
packets. 

3. How can I prevent my program from "paralyzing" the
USB bus, is there a good way to reset the bus? please
advise. 

Again, my program writes a 4-byte command and expects
about 256 bytes as a response to be read from the IN
pipe. 

Thanks for your promptness in responding. 
Cheers, 
Ron.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 _______________________________________________
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



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.