I am writing a program to monitor a specific device. This device may or may not always be connected, and when connected, it can be connected to any of several different ports; I would like my program to handle this gracefully.
Is there a way to receive notifications when a specific USB device is connected, and from there to determine which port it is connected to?
source
share