Solved

Multiple USB scanners with the same Manufacturer device ID

Posted on 2007-04-05
8
500 Views
Last Modified: 2010-05-18
I have connected 6 Fujitsu fi-5110c scanners to a Windows 2003 server, using a USB hub. All the drivers are installed correctly and each device functions fine. The problem I have is that when I disconnect the devices and then re-connect in a different order to the original process, the scanners are being assigned incorrectly by Windows. (I.e. scanner 5 is connected first, and Windows recognizes this as being scanner 1). So I need to connect them in the same order I originally did.

Another problem seems to be the event handling when the scan button is pressed (i.e events are triggering the wrong device).

Is there a device ID in the registry that could be causing this? I notice the device IDs are the same for each one, event though the control set 001 .. 007 is OK.
0
Comment
Question by:encircle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
8 Comments
 
LVL 6

Expert Comment

by:kbens0n
ID: 18873893
The answer to both these questions lies in the registry. When a bus driver performs device enumeration, it reports device identifiers for the devices it detects back to the PnP manager. The identifiers are bus-specific; for a USB bus, an identifier consists of a vendor ID (VID) for the hardware vendor that made the device and a product ID (PID) that the vendor assigned to the device. (See the DDK for more information on device ID formats.) Together these IDs form what Plug and Play calls a device ID. The PnP manager also queries the bus driver for an instance ID to help it distinguish different instances of the same hardware. The instance ID can describe either a bus-relative location (for example, the USB port) or a globally unique descriptor (for example, a serial number). The device ID and instance ID are combined to form a device instance ID (DIID), which the PnP manager uses to locate the device's key in the enumeration branch of the registry (HKLM\SYSTEM\CurrentControlSet\Enum)

Disconnecting/reconnecting the devices is no different than powering them off. The registry enumeration remains, as originally detected, and subsequent operations will be directed at the "perceived" ports as they were -originally- ...despite their new locations. In order to account for changes that you make in which devices and in which ports... you must remove the hardware enumeration from Device Manager for the Root port for the USB Hub and re-initiate a new <Hardware Found> sequence of PnP manager to allow Windows to discover the new configuration and update the Registry linkage)s) to the appropriate driver(s) and PID/VID pairs.
0
 
LVL 6

Expert Comment

by:kbens0n
ID: 18873895
BTW, using a simple "marking" system on the Hub ports and each device (such as matching color dots -or- paper labels, etc.) will allow for reeconnection of the proper device to the proper hub port ;-)
0
 
LVL 3

Expert Comment

by:Comply
ID: 18970566
You can try to disable "Safely Remove this Device" by

Right clicking on the USB device in Explorer-Properties-Hardware, High light the device then click properties. On the Policies tab uncheck Enable Write Caching. Then check optimize for quick removal. This stops you from having to right click the device safely remove. It makes it hot swapable.
0
 

Author Comment

by:encircle
ID: 18985478
The real issue is one of support. The scanners are at remote locations connected to a central server using a Silex USB network adapter.

If more than one was turned off, they would need to be turned on and connected manually in the correct order. This is impractical as there's 29 of the little blighters dotted around a 100 mile radius :(

We'ver resorted to using VMs as there's no solution from MS, Fujitsu, or Silex!

Maybe I could as if anyone knows how to re-flash the BIOS on a Fujitsu 5110c to change the device ID? ;)
0
 
LVL 3

Accepted Solution

by:
Comply earned 500 total points
ID: 18987347
Then The only way to keep them in the right order is too leave them connected.

The ID is hard coded in the board. You might see if the Manufactor could tell you ow to change it.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question