Re: Which USB hub port is a device connected to?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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 a
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.
USB "serial numbers" are _the_ way to handle issues like this.
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

.



Relevant Pages

  • Re: Which USB hub port is a device connected to?
    ... 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 ...
    (microsoft.public.development.device.drivers)
  • Re: Which USB hub port is a device connected to?
    ... hardware, the port they are connected to is what defines ordering. ... Device Driver APIs so that we can know that a given joystick in the ... on port 1 and a dual-axis game pad on port 4 is a reasonable hardware ...
    (microsoft.public.development.device.drivers)
  • Re: Which USB hub port is a device connected to?
    ... I have no idea how MS has implemeneted this in XBOX, but I assume that they use HW with serial numbers that is maped to controller 1, controller 2 etc. by using the SetupDi functions ... For our use case, a joystick ... on port 1 and a dual-axis game pad on port 4 is a reasonable hardware ...
    (microsoft.public.development.device.drivers)
  • Re: keeping ports open
    ... If a port is open, it means that 1) a software or service is running on your ... and 2) you're not using a firewall or your firewall isn't ... Use firewall software and hardware and antivirus software that is ... Follow the instructions for hardening Windows and IIS at ...
    (microsoft.public.security)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)