From: Tim Roberts on
PRANAV KANT GAUR <PRANAVKANTGAUR(a)discussions.microsoft.com> wrote:
>
>I have a Sandisk Cruzer Micro flash drive device & i want to replace the
>USBSTOR.sys which acts as function driver for it by the driver written by my
>own.

Then you don't have anything to do with IDE here. You need to read the USB
Mass Storage Class spec and understand the commands in there, which are a
subset of the SCSI command set.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.
From: Maxim S. Shatskih on
> I have a Sandisk Cruzer Micro flash drive device & i want to replace the
> USBSTOR.sys which acts as function driver for it by the driver written by my
> own.

And how is IDE related to this?

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: PRANAV KANT GAUR on


"Maxim S. Shatskih" wrote:

> > I have a Sandisk Cruzer Micro flash drive device & i want to replace the
> > USBSTOR.sys which acts as function driver for it by the driver written by my
> > own.
>
> And how is IDE related to this?
Sorry,It is not related.

I was not aware of the fact that "ATAPI is just SCSI over IDE wires" as you
told due to which i was thinking that since i have IDE ATA/ATAPI interface so
i need to perform IDE-command set to URB conversion.

Please sir,give me your advice over following:
I am an engineering student,willing to learn how interaction between system
entities & devices takes place,i found driver development to be as best way
to learn it.
But i concluded wrongly that client driver is the one that we can implement
which is responsible for implementing device specific functionality,now i
came to know that for USB mass storage devices Windows already have a class
driver:USBSTOR.sys ,it means to implement function driver i have to replace
USBSTOR.sys & client drivers have no role to play in typical USB mass
storage devices(like flash drives).
There seems to be no scope for developing replacement for USBSTOR.sys in
WDF,is it possible through any other model(please tell me from where i can
start working ?) -I want to submit it as my major project.



> --
> Maxim S. Shatskih
> Windows DDK MVP
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>
> .
>
From: Maxim S. Shatskih on
> I was not aware of the fact that "ATAPI is just SCSI over IDE wires" as you
> told due to which i was thinking that since i have IDE ATA/ATAPI interface so
> i need to perform IDE-command set to URB conversion.

No.

USB storage driver must convert from Windows internal command set to URB command set. And yes, Windows internal command set is SCSI.

> came to know that for USB mass storage devices Windows already have a class
> driver:USBSTOR.sys

Yes, and this suits most needs, even CD/DVD burning/ripping works over it (at least post-w2k).

> There seems to be no scope for developing replacement for USBSTOR.sys in
> WDF

Correct.

Sorry, I don't know what are the scope requirementes for student lab project.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Tim Roberts on
PRANAV KANT GAUR <PRANAVKANTGAUR(a)discussions.microsoft.com> wrote:
>
>Please sir,give me your advice over following:
>I am an engineering student,willing to learn how interaction between system
>entities & devices takes place,i found driver development to be as best way
>to learn it.

Many companies sell USB experimenter's kits that are designed specifically
for cases like yours. Many of them can be extended with LEDs, relays,
microprocessors, PICs, and other things that allow you to experiment with
external device control.

Google for "usb experimenters kits".
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.