Re: KMDF1.5: Reading from USB interrupt endpoints

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Johan Paul" <johan.paul@xxxxxxxxx> wrote in message news:dfa6b5b5-6bd9-4a57-9f20-a672e9eaaa5f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

Just a short question I have been wondering for a while now and I
would like to get this cleared; Am I right that I can read from a USB
interrupt endpoint in the same way I can read from a bulk endpoint? In
other words, I do not need to worry about if the endpoint is bulk or
interrupt as long as I parse the interface+endpoint descriptors right
and find my pipes? I remember reading from the Windows Driver
Foundation book that KMDF supports both bulk and interrupt endpoints,
but does this imply what I stated above?

I know that the osrusbfx2 example uses a continuous reader for an
interrupt endpoint, but I would like to read from the interrupt
endpoint just as I would from an bulk endpoint.

Now I just seem to have a problem that when I send a read request to
an interrupt endpoint the request's completion routine is never called
- although I can see from USB bus traces that the host controller ACKs
the IN transaction for the read - and thus the read request from the
user space application never returns.

I can successfully read from bulk endpoints with this same code - the
only difference is the endpoint's type.

What am I missing? Thanks!


BR,

Johan

.



Relevant Pages

  • Re: [PATCH] [RFC] introduce cx82310_eth: Conexant CX82310-based ADSL router USB ethernet driver
    ... From your previous lsusb output this is an interrupt endpoint, ... With another 8 bytes it would support 802.1Q. ... Larger packets seem to be dropped. ...
    (Linux-Kernel)
  • KMDF1.5: Reading from USB interrupt endpoints
    ... interrupt endpoint in the same way I can read from a bulk endpoint? ... endpoint just as I would from an bulk endpoint. ... Now I just seem to have a problem that when I send a read request to ...
    (microsoft.public.development.device.drivers)
  • Re: Bulkusb.sys performance
    ... You can get the most of a bulk endpoint, ... interrupt endpoint does. ... EP vs a int EP on an idle usb bus, on a heavily loaded bus, the INT ep may ...
    (microsoft.public.development.device.drivers)
  • Re: Bulkusb.sys performance
    ... note that bulk endpoints do not get guaranteed bandwidth, while an interrupt endpoint does. ... I have adapted bulkusb.sys for my usb device driver. ...
    (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)