libftdi Archives

Subject: how can I get usb port number?

From: Bryan.Richmond@xxxxxxxxxxx
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 31 Aug 2015 10:58:43 -0400
I'm trying to figure out a way to find out which usb port a device is connected to.  I have mulitiple of the same type of FT2232H chips hooked up.  
libusb has this command libusb_get_port_numbers. but it takes a libusb_device as an argument.

I tried to use libusb_get_device((&ftdic)->usb_dev), but this gave me a segfault.

Any help would be extremely appreciated. 


Bryan T. Richmond
Software Engineer
Environmental Sensors

INFICON, Inc
2 Technology Place
East Syracuse, NY 13057-9714

Phone: (315) 434-2559
Fax:      (315) 437-3803

E-Mail: bryan.richmond@xxxxxxxxxxx
Web: www.INFICON.com

**********************************************************************
NOTICE: - This message including any attachments is intended only for the use of the designated recipient(s) named above and may contain confidential information protected by law.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information is strictly prohibited.  If you have received this transmission in error, please notify the sender immediately by e-mail and delete the original message including any attachments.
***********************************************************************
Current Thread