Assign new value for the string descriptor of a USB device

" String descriptors are optional. If they are not used, any string index
fields of descriptors must be set to zero indicating there is no string
descriptor available." ( USB in a NutShell )

If these string descriptors are used or not used ,Can we assign new
value(as a identification number) for string descriptor of a USB device?

In a driver or in the device? In the device you can do whatever you want. In the driver, you cannot, but that is somewhat meaningless ways. In sw it depends on who consumes the string, if it is the bus driver, your driver is not loaded yet. If it is your driver consuming the string, you can do whatever you want

d

tiny phone keyboard + fat thumbs = you do the muth


From: prageeth madhushanka
Sent: Thursday, January 21, 2010 7:47 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Assign new value for the string descriptor of a USB device

I want to do this in existing USB device.I am looking for a way of assigning
some key (value) for a USB device (for a USB descriptor), and next time i
should be able to read that value.

On Thu, Jan 21, 2010 at 9:31 PM, Doron Holan wrote:

> In a driver or in the device? In the device you can do whatever you want.
> In the driver, you cannot, but that is somewhat meaningless ways. In sw it
> depends on who consumes the string, if it is the bus driver, your driver is
> not loaded yet. If it is your driver consuming the string, you can do
> whatever you want
>
> d
>
> tiny phone keyboard + fat thumbs = you do the muth
>
>
>
>
>
> ------------------------------
> From: prageeth madhushanka
> Sent: Thursday, January 21, 2010 7:47 AM
>
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Assign new value for the string descriptor of a USB
> device
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer


Prageeth Madhushanka
Mobile: 0777935559
College: APIIT 2010
High School: R.C.C.W 06

Most devices do not have this type of functionality (basically nvram exposed to sw). Do you want to do this for a specific device that is capable of this or an off the shelf device?

d

tiny phone keyboard + fat thumbs = you do the muth


From: prageeth madhushanka
Sent: Thursday, January 21, 2010 8:10 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Assign new value for the string descriptor of a USB device

Oh… I’m looking to do this for flash drives .

My problem is to find a way to identify a certain USB device ,
I couldn’t find a solid way to do that yet. I was thinking to do that with
manipulating device descriptor. Since I 'm new to this I’m struggling with
this.

On Thu, Jan 21, 2010 at 9:47 PM, Doron Holan wrote:

> Most devices do not have this type of functionality (basically nvram
> exposed to sw). Do you want to do this for a specific device that is capable
> of this or an off the shelf device?
>
>
> d
>
> tiny phone keyboard + fat thumbs = you do the muth
>
>
>
> ------------------------------
> From: prageeth madhushanka
> Sent: Thursday, January 21, 2010 8:10 AM
>
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Assign new value for the string descriptor of a USB
> device
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Prageeth Madhushanka
Mobile: 0777935559
College: APIIT 2010
High School: R.C.C.W 06

On 1/21/2010 5:24 PM, prageeth madhushanka wrote:

Oh… I’m looking to do this for flash drives .

My problem is to find a way to identify a certain USB device ,
I couldn’t find a solid way to do that yet. I was thinking to do that
with manipulating device descriptor. Since I 'm new to this I’m
struggling with this.

  • If you don’t have access to the USB device firmware, you can not
    manipulate its descriptors.

  • So forget manipulation of the USB serial number (iSerialNumber and the
    associated string descriptor).

  • What you likely *can* do is to check the Windows “Volume Serial Number”.

For Wikipedia: “In FAT and NTFS file systems, a volume serial number is
a feature used to determine if a disk is present in a drive or not, and
to detect if it was exchanged with another one. This identification
system was created by Microsoft and IBM during their development of OS/2.”

HTH-H

prageeth madhushanka wrote:

Oh… I’m looking to do this for flash drives .

My problem is to find a way to identify a certain USB device ,
I couldn’t find a solid way to do that yet. I was thinking to do that
with manipulating device descriptor. Since I 'm new to this I’m
struggling with this.

Flash drives should all have a unique serial number. Are you saying
your do not? Or that you do not know?


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