- USB Mass Storage Device
- Posted by Adam Piotrowski on November 28th, 2003
Hello, I need help. I must write a usb mass storage device driver for
Windows 2000 and I need information about it. Could anyone help me find
something helpful? I must write something like usbstor.sys.
Adam Piotrowski
- Posted by Doron Holan [MS] on November 29th, 2003
pray tell, why can't you use usbstor.sys directly?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Adam Piotrowski" <komam@poczta.onet.pl> wrote in message
news:bq8o8k$al7$1@news.onet.pl...
- Posted by Adam Piotrowski on November 29th, 2003
It will be my M.A. thesis, I hope that, if I find some information....
Użytkownik "Adam Piotrowski" <komam@poczta.onet.pl> napisał w wiadomości
news:bq8o8k$al7$1@news.onet.pl...
- Posted by Walter Oney on November 29th, 2003
"Adam Piotrowski" <komam@poczta.onet.pl> wrote in message
news:bq9rvd$7kt$1@news.onet.pl...
This is an inappropriate topic for a thesis, in my view. It doesn't
represent any contribution to knowledge given that it's already been done.
Furthermore, I always advise students to concentrate on learning general
principles rather than topics like this one, which are highly specialized.
Thus, I nearly always think that students should not try to write
kernel-mode drivers at all.
--
---
Walter Oney
Training and Consulting
http://www.oneysoft.com
- Posted by Adam Piotrowski on November 29th, 2003
Polish technical universities provide rather high level of education
focusing on practical applications.
Since this knowledge is very closely realted to my diploma topic, I am
trying to gather all information possible, from people who have large
experience in this matter.
Best Regards,
Adam Piotrowski
Student of Technical Univ. of Lodz
Użytkownik "Walter Oney" <waltoney@oneysoft.com> napisał w wiadomości
news:#SdMkAptDHA.3532@TK2MSFTNGP11.phx.gbl...
- Posted by David J. Craig on November 29th, 2003
I would love to find usbstor and sbp2port useful from a programmer's
perspective. The support for software wanting to access the same data
available from IDE and SCSI drives is so limited and/or undocumented as to
be useless. I have four PhysicalDrives with the first being a hard drive on
the primary IDE channel, the second and third being a dual slot SanDisk
CF&SM flash memory reader, and the fourth being a Western Digital 160GB USB
2.0 hard drive. I cannot get the serial numbers or media information for
the last three drives. I can't tell whether the flash memory is CF or SM
much less the serial number of that media. I have tried the SCSI pass, IDE
pass, IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER and IOCTL_STORAGE_QUERY_PROPERTY
requests. I have someone else trying my test code on a 1394 box with no
success. I also tried the SCSI pass inquiry asking for page 80h where the
serial number info resides, but usbstor rejected the request. Since the
underlying physical drive is IDE, it would be nice to be able to issue the
0ECh command and get the full raw data.
"Doron Holan [MS]" <doronh@online.microsoft.com> wrote in message
news:eQA8F1ltDHA.2448@TK2MSFTNGP12.phx.gbl...
- Posted by Maxim S. Shatskih on December 1st, 2003
This is maybe not due to software, but due to hardware or bus protocol not
supporting some mode pages.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
- Posted by David J. Craig on December 1st, 2003
You may be correct, but with as long as flash memory has been on the market
you would think the needed support would have been implemented. DRM
requires knowledge of the serial number of the flash memory module or access
will not be granted - this is to prevent copies from being playable. This
is not to say I support or like DRM, but Microsoft loves it and supports
some of it in their Media Player.
For IDE drives installed within 1394 and/or USB enclosures, the IDENTIFY
command would provide all the data needed. The SCSI Inquiry command is
handled by the port driver just like the ATAPI driver handles it for devices
on the ATA bus. There is a serial number descriptor that USBVIEW shows, but
it doesn't appear to be the real device's serial number, but even knowing a
truly unique serial number for the chip would help.
"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:OoUKNPCuDHA.2072@TK2MSFTNGP10.phx.gbl...
- Posted by Maxim S. Shatskih on December 1st, 2003
What about the USB-level unique ID, which is transformed to a PnP ID?
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"David J. Craig" <SeniorDriversWriter@shogunyoshimuni.com.net> wrote in message
news:uzj5ryDuDHA.3224@tk2msftngp13.phx.gbl...
- Posted by David J. Craig on December 1st, 2003
If you take the same device to another computer will that ID be the same?
If not, it won't work. That is what the real serial numbers give you. We
need it to warn or prohibit some action if the IS department configures it
to do so. An individual user will be able to configure it to just work with
maybe a warning if we see something that might be overwritten.
"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:bqg98f$2uhr$1@gavrilo.mtu.ru...
- Posted by Maxim S. Shatskih on December 2nd, 2003
Yes. The USB ID is either the real serial number (like MAC address) or just
absent.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
- Posted by Pavel A. on December 3rd, 2003
"David J. Craig" <SeniorDriversWriter@shogunyoshimuni.com.net> wrote in message
news:O$PYM2rtDHA.2432@TK2MSFTNGP10.phx.gbl...
Controller of CF or Smartmedia flash may really emulate IDE interface, but not sure about USB and smartmedia...
- PA
- Posted by David J. Craig on December 3rd, 2003
SmartMedia does not emulate the IDE interface. That requires a controller
and that is why SM is so much cheaper than CF, MS, and MMC/SD. All
controller logic must be in the device the SM is inserted into - the camera
or the reader/writer. Even the LRU algorithm for flash block reusage must
be in the device. I am certain because I have written drivers for SM and
the version 1.00 Physical and Logical format specs are available from SSFDC
for free. The current versions require membership and have to be paid for.
Toshiba has a nice PC Card device and software that permits complete
analysis of the SmartMedia from both physical and logical viewpoints. I
found it very useful when examining problems with the driver or unusual
formats. Too bad the logical and physical formats don't permit media larger
than 128MB, thus far.
"Pavel A." <pavel_a@geeklife.com> wrote in message
news:Olg71hTuDHA.2180@TK2MSFTNGP09.phx.gbl...
- Posted by Pavel A. on December 3rd, 2003
Sorry David, I meant CF only of course.
So if Smartmedia etc. doesn't have IDE interface behind it, why to expect that
IDE specific command will work on it.
On the other hand, USB readers with removable media (either) are not likely to generate
USB specific "serial numbers" based on the media's serial number, because
this adds extra 50 cents to the cost 
-- PA
"David J. Craig" <SeniorDriversWriter@shogunyoshimuni.com.net> wrote in message
news:%23eiT6tTuDHA.1760@TK2MSFTNGP10.phx.gbl...
- Posted by David J. Craig on December 3rd, 2003
I guess my question is why? With all these lawsuits by the big media
companies and Microsoft's push to implement DRM, you can't implement DRM if
you don't know the serial number of the media where the file is stored. I
am afraid that if an access method exists, it is undocumented and it might
not be available since I know the way to get the serial number from
SmartMedia is a little different in that it requires a special command after
a reset.
"Pavel A." <pavel_a@geeklife.com> wrote in message
news:OCNcF%23TuDHA.1596@TK2MSFTNGP10.phx.gbl...
- Posted by Ray Trent on December 3rd, 2003
Anyone relying on media serial numbers to implement DRM isn't really
doing a very good job of it. First of all, they aren't guaranteed to be
unique anyway. Second of all, unless you talk to the hardware directly
yourself (in which case you wouldn't be asking this), it would be
trivial to stick a filter driver in there that modified the serial
number returned by whatever API you'd use.
Of course, DRM is hopeless... so perhaps half a loaf is better than none...
David J. Craig wrote:
--
.../ray\..
- Posted by David J. Craig on December 3rd, 2003
Media serial numbers ARE unique or there would be no point in having them.
I know SmartMedia has them in OTP, one time programmable, memory and they
are applied after quality testing is completed. Hard drives contain serial
numbers from the factory so the manufacturer can track registrations and
repairs. If you are thinking about volume serial numbers, then you are
correct and any volume can be changed to have the same serial number as any
other. I also know CF contains serial numbers and it is also printed on the
label.
"Ray Trent" <rat@synaptics.com.spamblock> wrote in message
news:uoCCOFduDHA.2260@TK2MSFTNGP09.phx.gbl...
- Posted by Ray Trent on December 3rd, 2003
No, what I mean is that they are only unique on a per-manufacturer basis
unless something has changed in the last several years.
David J. Craig wrote:
--
.../ray\..
- Posted by David J. Craig on December 3rd, 2003
Probably true, but most serial number I have seen use different formats for
each vendor. Seagate likes 'ST' to start serial numbers. Even so, then you
can use the Vendor, Model, Product, and Revision to combine with the serial
and since some of the other fields are trademarks that should be unique
enough. I do agree it really won't work because all you need is a filter to
force it to match whatever was used when the protected files were acquired
by the first user.
"Ray Trent" <rat@synaptics.com.spamblock> wrote in message
news:%23bLKWefuDHA.1888@TK2MSFTNGP10.phx.gbl...