ISOUsb driver instead of BULKUSB Driver

Hi ,

I am using BulkUSb Driver to access a USB device in my PC through GUI application .

Can I use the ISOUSB driver in stead of BulkUSb I will build the isousb driver with same name & option as
I build the bulkusb .

Amit Rajkumar Shahi


IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Amit Shahi wrote:

I am using BulkUSb Driver to access a USB device in my PC through GUI application .

Can I use the ISOUSB driver in stead of BulkUSb I will build the isousb driver with same name & option as
I build the bulkusb .

What are you actually trying to accomplish? If your device has bulk
pipes, then you need to use bulk transfers in the driver. If your
device has isochronous pipes, then you need to use isochronous
transfers. It would be an incredibly bad idea to have a driver called
“bulkusb” that did isochronous transfers.

Usually, when starting from a sample, you’ll copy it to your own
directory, change its name to something meaningful to your project, and
then customize it. Once you do that, you can add or modify whatever
functionality you need to service your device.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

In addition, it may not be a good idea to start with these samples at all. The code base is very similar and there is a lot of issues; especially when selective suspend is used. It would be better to start from scratch or use KMDF is something usable is needed soon.

To be clear: I used BulkUsb sample as a base for my driver almost 4 years and I’d never do it again. I rewrote at least half of code and still there are problems coming from flawed original design.

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]


From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Tim Roberts[SMTP:xxxxx@probo.com]
Reply To: Windows System Software Devs Interest List
Sent: Friday, May 04, 2007 7:48 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] ISOUsb driver instead of BULKUSB Driver

Amit Shahi wrote:
> I am using BulkUSb Driver to access a USB device in my PC through GUI application .
>
> Can I use the ISOUSB driver in stead of BulkUSb I will build the isousb driver with same name & option as
> I build the bulkusb .
>

What are you actually trying to accomplish? If your device has bulk
pipes, then you need to use bulk transfers in the driver. If your
device has isochronous pipes, then you need to use isochronous
transfers. It would be an incredibly bad idea to have a driver called
“bulkusb” that did isochronous transfers.

Usually, when starting from a sample, you’ll copy it to your own
directory, change its name to something meaningful to your project, and
then customize it. Once you do that, you can add or modify whatever
functionality you need to service your device.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Your USB device has to support the transfer mode of course. But why would
you want to do this?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-285572-
xxxxx@lists.osr.com] On Behalf Of Amit Shahi
Sent: Friday, May 04, 2007 10:10 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ISOUsb driver instead of BULKUSB Driver

Hi ,

I am using BulkUSb Driver to access a USB device in my PC through GUI
application .

Can I use the ISOUSB driver in stead of BulkUSb I will build the isousb
driver with same name & option as
I build the bulkusb .

Amit Rajkumar Shahi


IndiaInfo Mail - the free e-mail service with a difference!
www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for
mail storage, POP3, e-mail forwarding, and ads-free mailboxes!


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Hi ,

In my GUI application I am using the Bulk mode pipe for transfer of PCM data which is played in GUI application .My application send request for data every 30mili second .

I have another pipe by which I transfer the control request to stop/start data transfer and other similar request.

This model is working fine in Normal case but sometime when we send the request for control the application is not able to get the data at that fix interval .

So I need to support the ISO mode for Device or the functionality of ISO mode in BulkDriver (such as in USB mike where the ISODriver send the request for data buffer & once it has data buffer it interrupt the data buffer in BulkMode of Driver).

Please tell me is it possible & which option i should use?

Thanks
Amit Shahi

“Tim Roberts” wrote in message news:xxxxx@ntdev…
> Amit Shahi wrote:
>> I am using BulkUSb Driver to access a USB device in my PC through GUI application .
>>
>> Can I use the ISOUSB driver in stead of BulkUSb I will build the isousb driver with same name & option as
>> I build the bulkusb .
>>
>
> What are you actually trying to accomplish? If your device has bulk
> pipes, then you need to use bulk transfers in the driver. If your
> device has isochronous pipes, then you need to use isochronous
> transfers. It would be an incredibly bad idea to have a driver called
> “bulkusb” that did isochronous transfers.
>
> Usually, when starting from a sample, you’ll copy it to your own
> directory, change its name to something meaningful to your project, and
> then customize it. Once you do that, you can add or modify whatever
> functionality you need to service your device.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>


______________________________________________
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Amit Shahi wrote:

In my GUI application I am using the Bulk mode pipe for transfer of PCM data which is played in GUI application .My application send request for data every 30mili second .

I have another pipe by which I transfer the control request to stop/start data transfer and other similar request.

This model is working fine in Normal case but sometime when we send the request for control the application is not able to get the data at that fix interval .

So I need to support the ISO mode for Device or the functionality of ISO mode in BulkDriver (such as in USB mike where the ISODriver send the request for data buffer & once it has data buffer it interrupt the data buffer in BulkMode of Driver).

Please tell me is it possible & which option i should use?

If your device has a bulk pipe, then you have to use bulk requests to
talk to it. Now, if you control the device’s firmware, you could
certainly change the device to use an interrupt or isochronous pipe to
get guaranteed bandwidth.

However, I’ll bet real money that the pipe type is not the problem
here. The pipe type merely determines how your requests are scheduled
on the bus itself, and that’s not your problem. How much data are you
transferring every 30ms? Does the device hold data in a FIFO and wait
for you to request it? Are you sending multiple requests at a time?
Does your device require a control request before EVERY bulk transfer,
or is it just to start streaming?

Perhaps if you showed us the code in your inner loop, we could offer
better advice.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.