USB ReadPipe Interface Stall
USB ReadPipe Interface Stall
- Subject: USB ReadPipe Interface Stall
- From: Ian was here <email@hidden>
- Date: Tue, 27 Jan 2009 16:47:45 -0800 (PST)
I am sending data to a custom USB device and trying to read it's response. WritePipe() is successful, but when I go to ReadPipe(), the pipe stalls, causing my application to hang. I tried clearing both ends of the pipe, but still no luck.
IOUSBInterfaceInterface245 **interface;
Device is opened and the desired interface is found.
(*interface)->ClearPipeStallBothEnds( interface, 2 );
char gBuffer[64];
UInt32 numBytesRead = sizeof(gBuffer);
Hangs on this function.
IOReturn kernalReturn = (*interface)->ReadPipe( interface, 2, gBuffer, &numBytesRead );
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden