How to Fire Multiple URBs from allication or driver?

S

slsnios

Hi All,
I developed USB2.0 High speed driver from DDK 2003 SP1. I made some
changes that will handle my custome device.

I created an application which use overlapped I/O as NULL, so using
this my application has to wait for bytes read/write that i defined. Now
using this only single URB is active at time. But how can i generate
multiple URBs, so using that OS scheduler can execute URBs in fast
manner when it gets the time slice for USB bus.

I think that using asychronous method i can achieve this, but that is
from the application level. How it would be possible to create multiple
URBs from driver or directly from application.

Please suggest me.
Regards,
slsnios
 
D

Doron Holan [MSFT]

first, you should get the 6000 WDK, it is the latest driver kit. your driver
can send i/o to the device on its own without the application initiating it.
you would hten have to keep a copy of the data you read until the
application asked for it.

I would recommend that you look at using KMDF or even better, winusb to
communicate with your hardware. If you use KMDF it has a feature called a
continous reader which will constantly send N number of URBs to the device.
If you use winusb, you can get rid of your driver completely and do all of
the i/o from the application. Both are available in the WDK.

d
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top