Re: KMDF1.5: Reading from USB interrupt endpoints

Tech-Archive recommends: Fix windows errors by optimizing your registry



What you may be missing is the packet size. If your request to the interrupt endpoint is larger than what the device is returning, and the device happens to be returning a multiple of its MaxPacketSize, then your request will not complete as it is waiting for more data from the device.


"Johan Paul" <johan.paul@xxxxxxxxx> wrote in message news:NNW1k.13020$_03.3524@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Doron for your answer! This makes me feel a lot better. Do you
have any ideas why I now seem to miss the completion routine although
the host controller ACKs the IN transaction? Do you know, for example,
if some host controllers would have issues with this? I am sure the same
code works, for example, inside VMWare (VMWare running XP32, Vista32
inside VMWare) but I tested this today on my AMD64 laptop with Vista32
installed on it and saw that the read never completes.

I thought I would try tomorrow to do the read operation synchronously to
see if that makes a differance.



--
Johan


you are not missing anything, you can read/write to an interrupt
endpoint using the same APIs that you read/write to an bulk endpoint

d


.



Relevant Pages

  • Re: Persistent stall in the Cypress FX2 FIFO
    ... Are you absolutely certain that the endpoint is STALLed? ... usually means that the endpoint has received an invalid USB request. ... the master interrupt and the individual interrupt register. ... Persistent stall in the Cypress FX2 FIFO ...
    (comp.arch.embedded)
  • Re: Iyonix USB: Bulk IN endpoints
    ... well with this sort of data on a bulk endpoint. ... I need to be able to initiate a request for a non-blocking input ... I looked at the documentation of the Simtec stack again today, ... embedded system and the number of bytes waiting to be transmitted from ...
    (comp.sys.acorn.programmer)
  • Re: Requesting for less than endpoint size in UsbBuildInterruptOrBulkTransferRequest
    ... If you KNOW that the device will send less data, you CAN request less that ... If the device sends more than your buffer size, ... the transfer fails, the endpoint is stalled. ... > client driver should issue a bulk request of at least endpoint size? ...
    (microsoft.public.development.device.drivers)
  • Re: KMDF1.5: Reading from USB interrupt endpoints
    ... one NAKed IN transaction from that endpoint but that is ok. ... I am more confused that the reading is definitely working in Vista32 ... inside VMWare but not on my laptop running Vista32. ... interrupt endpoint is larger than what the device is returning, ...
    (microsoft.public.development.device.drivers)
  • Re: Device Driver - Direct Access to Endpoint 0
    ... defined in UsbBuildVendorRequest to send requests to Endpoint 0. ... Specifies the device-defined identifier if the request is for an endpoint, ... >> I have made a USB functional driver and it is stacked on top of "usb bus ...
    (microsoft.public.development.device.drivers)