• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
USB ReadPipe Interface Stall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
  • Next by Date: Modal Sheet without Spaghetti?
  • Previous by thread: Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
  • Next by thread: Modal Sheet without Spaghetti?
  • Index(es):
    • Date
    • Thread