Dear all,
I developed a driver for my USB device and its working fine also.
I plugged my device in one of my USB ports and installed the driver.
The driver has installed and working fine.
If I plug my device in another USB port, OS is giving messages as “New
hardware found” and asking for new installation of driver.
What should I do to eliminate this problem?
Thanks and Regards,
Ramya.
Add a serial number to your device, otherwise does not know if it is the
same device in the new port or a new instance of the same device in the
new port.
Yes, this behavior is by design.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ramya Desai
Sent: Thursday, April 07, 2005 10:51 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Changing of ports again asking for driver installation.
Dear all,
I developed a driver for my USB device and its working fine also.
I plugged my device in one of my USB ports and installed the driver.
The driver has installed and working fine.
If I plug my device in another USB port, OS is giving messages as “New
hardware found” and asking for new installation of driver.
What should I do to eliminate this problem?
Thanks and Regards,
Ramya.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Second time I am plugging the same device in another port.
Actually I want to install the driver for once, and want to use for
same type of devices on different ports.
Is this possible ?
On Apr 8, 2005 11:51 AM, Doron Holan wrote:
> Add a serial number to your device, otherwise does not know if it is the
> same device in the new port or a new instance of the same device in the
> new port.
>
> Yes, this behavior is by design.
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Ramya Desai
> Sent: Thursday, April 07, 2005 10:51 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Changing of ports again asking for driver installation.
>
> Dear all,
>
> I developed a driver for my USB device and its working fine also.
> I plugged my device in one of my USB ports and installed the driver.
> The driver has installed and working fine.
>
> If I plug my device in another USB port, OS is giving messages as “New
> hardware found” and asking for new installation of driver.
>
> What should I do to eliminate this problem?
>
> Thanks and Regards,
> Ramya.
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
As Doron tried to explain, you will need a (unique?) serial number for the
device so that when you unplug and replug the device, windows KNOWS that
it’s the same device. If the serial number isn’t set, then windows uses the
“safe” approach of assuming that you’ve just plugged in another new device,
which it requires a new (instance of the) driver for.
I’m not that familiar with USB, so I don’t know exactly where this serial
number will go, but I expect that a quick look at some specs would find a
serial number somewhere in the initialisation of the hardware which will be
the one you need to set to some “random” value. Once you do that, you
should be able unplug and replug the device. Another device of the same
type should have a different serial number so that it’s identified that it
needs another instance of the driver, I expect.
–
Mats
xxxxx@lists.osr.com wrote on 04/08/2005 11:02:43 AM:
Second time I am plugging the same device in another port.
Actually I want to install the driver for once, and want to use for
same type of devices on different ports.
Is this possible ?
On Apr 8, 2005 11:51 AM, Doron Holan
wrote:
> > Add a serial number to your device, otherwise does not know if it is
the
> > same device in the new port or a new instance of the same device in the
> > new port.
> >
> > Yes, this behavior is by design.
> >
> > d
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Ramya Desai
> > Sent: Thursday, April 07, 2005 10:51 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] Changing of ports again asking for driver
installation.
> >
> > Dear all,
> >
> > I developed a driver for my USB device and its working fine also.
> > I plugged my device in one of my USB ports and installed the driver.
> > The driver has installed and working fine.
> >
> > If I plug my device in another USB port, OS is giving messages as “New
> > hardware found” and asking for new installation of driver.
> >
> > What should I do to eliminate this problem?
> >
> > Thanks and Regards,
> > Ramya.
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at http://www.
> osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.
> osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@3dlabs.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
> ForwardSourceID:NT000105DE
My device has the serial number.
After installation of driver, I can plug and unplug my device in the
same port many times without any new installation .
I can even plug and unplug second device of different serial number in
the same port as earlier and is working fine.
But if I chnage port I need to install driver again even for the first device.
Do I really need to install driver for different port for the same
device having same serial number ?
Regards,
Ramya.
On Apr 8, 2005 3:42 PM, Mats PETERSSON wrote:
>
>
> As Doron tried to explain, you will need a (unique?) serial number for the
> device so that when you unplug and replug the device, windows KNOWS that
> it’s the same device. If the serial number isn’t set, then windows uses the
> “safe” approach of assuming that you’ve just plugged in another new device,
> which it requires a new (instance of the) driver for.
>
> I’m not that familiar with USB, so I don’t know exactly where this serial
> number will go, but I expect that a quick look at some specs would find a
> serial number somewhere in the initialisation of the hardware which will be
> the one you need to set to some “random” value. Once you do that, you
> should be able unplug and replug the device. Another device of the same
> type should have a different serial number so that it’s identified that it
> needs another instance of the driver, I expect.
>
> –
> Mats
> xxxxx@lists.osr.com wrote on 04/08/2005 11:02:43 AM:
>
> > Second time I am plugging the same device in another port.
> > Actually I want to install the driver for once, and want to use for
> > same type of devices on different ports.
> > Is this possible ?
> >
> > On Apr 8, 2005 11:51 AM, Doron Holan
> wrote:
> > > Add a serial number to your device, otherwise does not know if it is
> the
> > > same device in the new port or a new instance of the same device in the
> > > new port.
> > >
> > > Yes, this behavior is by design.
> > >
> > > d
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Ramya Desai
> > > Sent: Thursday, April 07, 2005 10:51 PM
> > > To: Windows System Software Devs Interest List
> > > Subject: [ntdev] Changing of ports again asking for driver
> installation.
> > >
> > > Dear all,
> > >
> > > I developed a driver for my USB device and its working fine also.
> > > I plugged my device in one of my USB ports and installed the driver.
> > > The driver has installed and working fine.
> > >
> > > If I plug my device in another USB port, OS is giving messages as “New
> > > hardware found” and asking for new installation of driver.
> > >
> > > What should I do to eliminate this problem?
> > >
> > > Thanks and Regards,
> > > Ramya.
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at http://www.
> > osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: unknown lmsubst tag argument:
> ‘’
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at http://www.
> > osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@3dlabs.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> > ForwardSourceID:NT000105DE
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Ramya Desai wrote:
My device has the serial number.
After installation of driver, I can plug and unplug my device in the
same port many times without any new installation .
I can even plug and unplug second device of different serial number in
the same port as earlier and is working fine.
But if I chnage port I need to install driver again even for the first device.
Do I really need to install driver for different port for the same
device having same serial number ?
Please. LISTEN to what people are telling you and stop asking the same
question over and over again.
Doron Holan answered your question. The behavior you’re seeing is by
design.
This has been discussed MANY MANY times in this forum. SEARCH THE ARCHIVES.
Peter
OSR
A couple of more notes:
-
is the new port on the same controller as the old port? On pretty
much all new machines, all the ports you see that on are on the
motherboard have their own controller. I am pretty sure the serial
number helps for all times the device is plugged onto the same
controller. If you move to another controller, all bets are off
-
you can get automatic installation if you install your INF on the
system *AND* your driver package is signed. When that happens, the OS
will use your INF/driver w/out asking the user.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Peter Viscarola
(OSR)
Sent: Friday, April 08, 2005 7:08 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Changing of ports again asking for driver
installation.
Ramya Desai wrote:
My device has the serial number.
After installation of driver, I can plug and unplug my device in the
same port many times without any new installation .
I can even plug and unplug second device of different serial number in
the same port as earlier and is working fine.
But if I chnage port I need to install driver again even for the first
device.
Do I really need to install driver for different port for the same
device having same serial number ?
Please. LISTEN to what people are telling you and stop asking the same
question over and over again.
Doron Holan answered your question. The behavior you’re seeing is by
design.
This has been discussed MANY MANY times in this forum. SEARCH THE
ARCHIVES.
Peter
OSR
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Ramya Desai wrote:
My device has the serial number.
Are you sure? Does USBVIEW show the correct serial number in its dump
of the descriptors? Do your other string descriptors look correct? Do
you have the language definition in the very first string descriptor
(like 04 03 09 04)?
On Apr 8, 2005 3:42 PM, Mats PETERSSON wrote:
>
>
>>As Doron tried to explain, you will need a (unique?) serial number for the
>>device so that when you unplug and replug the device, windows KNOWS that
>>it’s the same device. If the serial number isn’t set, then windows uses the
>>“safe” approach of assuming that you’ve just plugged in another new device,
>>which it requires a new (instance of the) driver for.
>>
>>
You know, I have never really understood the rationale for this
behavior. I am telling the operating system in my INF file that all
devices with VID_1234&PID_5678 are handled by MyCoolDriver.sys. If the
device matched in port X, then it’s going to match in port Y. What is
the point of going through the Found New Hardware process again? It
ISN’T new hardware. It’s old hardware in a new spot.
–
- Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Let’s say there is device specific information in the devnode that is
unique to that port (let’s say, COM port number). Now I don’t have a
unique serial number and I move it from one port to the next and the
com port number follows me. Now I plug in a 2nd instance into the old
port, and it now thinks it has the same com port number. Bad mojo.
Device specific settings can only migrate if we know it is the same
device somewhere else in the topology.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, April 08, 2005 11:03 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Changing of ports again asking for driver
installation.
Ramya Desai wrote:
My device has the serial number.
Are you sure? Does USBVIEW show the correct serial number in its dump
of the descriptors? Do your other string descriptors look correct? Do
you have the language definition in the very first string descriptor
(like 04 03 09 04)?
On Apr 8, 2005 3:42 PM, Mats PETERSSON
wrote:
>
>
>>As Doron tried to explain, you will need a (unique?) serial number for
the
>>device so that when you unplug and replug the device, windows KNOWS
that
>>it’s the same device. If the serial number isn’t set, then windows
uses the
>>“safe” approach of assuming that you’ve just plugged in another new
device,
>>which it requires a new (instance of the) driver for.
>>
>>
You know, I have never really understood the rationale for this
behavior. I am telling the operating system in my INF file that all
devices with VID_1234&PID_5678 are handled by MyCoolDriver.sys. If the
device matched in port X, then it’s going to match in port Y. What is
the point of going through the Found New Hardware process again? It
ISN’T new hardware. It’s old hardware in a new spot.
–
- Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Tim Roberts wrote:
You know, I have never really understood the rationale for this
behavior. I am telling the operating system in my INF file that all
devices with VID_1234&PID_5678 are handled by MyCoolDriver.sys. If the
device matched in port X, then it’s going to match in port Y. What is
the point of going through the Found New Hardware process again? It
ISN’T new hardware. It’s old hardware in a new spot.
I know this isn’t a very satisfying answer, but AFAICT the reason is
that it needs to populate a new devnode in the enum key. In theory one
could just copy the old devnode, I suppose (if you could find it
reliably), but I think if I were designing it I would take the safe
route and just reinstall the driver too.
Why are there different devnodes for different ports? Well, because
that’s where drivers usually store their per-device settings, and you
might have 2 identical devices plugged in that are set differently…
As Doron mentioned, a signed driver doesn’t present the user with
anything (other than a delay when plugging into a new port, and
that’s the real answer to the OP’s question.
…/ray..
Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.
> If I plug my device in another USB port, OS is giving messages as "New
hardware found" and asking for new installation of driver.
What should I do to eliminate this problem?
Provide a unique ID in the device’s config descriptor. Yes, the ID must be
really unique.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com