Re: Which USB hub port is a device connected to?
- From: "Pavel A." <pavel_a@xxxxxxxxxxxxxxx>
- Date: Wed, 08 Jul 2009 12:06:40 +0300
"Ray Trent" <r...@xxxxxxxxxxxxx> wrote in message
news:O5Ctfql$JHA.3544@xxxxxxxxxxxxxxxxxxxxxxx
Serial numbers are a good way to *identify* the device, but you may have
missed the fact that he wants the *opposite* of Windows behavior when
serial numbers are present. I.e. he wants device 1 to behave like device 2
and vice versa if their plugs are switched.
Personally, I find that to be a really bizarre requirement.
You're right, thanks for pointing this out.
For typical Windows PC (single user) requirement
to identify USB connection points is unusual,
but it arises for multi user scenarios.
Besides of game controllers,there are some "multiuser Windows"
products. One such product is designed so that each concurrent
user has their own USB hub; everything connected to it
belongs to that user.
--pa
.Pavel A. wrote:TangoDelta wrote:--I'm facing the same problem as the original poster, and can give aUSB "serial numbers" are _the_ way to handle issues like this.
reasonable scenario. I'm controlling a robot with USB HID devices and
want to be able to guarantee to the user that the physical mapping
between physical ports on a usb hub and logical mappings in software
to "Joystick 1", "Joystick 2" etc are consistent across reboots,
hardware changes, and different systems. For our use case, a joystick
on port 1 and a dual-axis game pad on port 4 is a reasonable hardware
configuration that should correspond to "Joystick 1" and "Joystick 4"
getting data in software, while 2 and 3 show no device connected. If
the user then switched the devices, plugging the joystick into port 4
and the game pad into port 1, we want to respect the physical layout
and now show the joystick data as being "Joystick 4" and the game pad
as "Joystick 1".
I haven't found any good way to accomplish this task.
Hardware that does not have "serial numbers" does not
support this usage scenario, and leaves you free to invent
whatever else in software.
Regards,
-- PA
Ray
- References:
- Re: Which USB hub port is a device connected to?
- From: TangoDelta
- Re: Which USB hub port is a device connected to?
- From: Pavel A.
- Re: Which USB hub port is a device connected to?
- From: Ray Trent
- Re: Which USB hub port is a device connected to?
- From: m
- Re: Which USB hub port is a device connected to?
- From: TangoDelta
- Re: Which USB hub port is a device connected to?
- Prev by Date: Checksum offload in Vista Filter Driver
- Next by Date: Re: ndis advanced page uninstall
- Previous by thread: Re: Which USB hub port is a device connected to?
- Next by thread: Re: Which USB hub port is a device connected to?
- Index(es):
Relevant Pages
|