FTDI Community

General Category => Discussion - Software => Topic started by: PAS on December 12, 2020, 08:51:15 AM

Title: FT4222 FT_OpenEx with FT_OPEN_BY_LOCATION
Post by: PAS on December 12, 2020, 08:51:15 AM
On Linux FT_GetDeviceInfoDetail (and other functions for getting info about connected devices) return LocID with some values, which can then be used in FT_OpenEx with FT_OPEN_BY_LOCATION.

On Windows 7/10 FT_GetDeviceInfoDetail always return LocID = 0. And FT_OpenEx can open device LocID=0, but not with LocID value from USBVIEW.

Is there way to open device by location on Windows 7/10?
Title: Re: FT4222 FT_OpenEx with FT_OPEN_BY_LOCATION
Post by: FTDI Community on December 14, 2020, 03:48:27 PM
Hello,

I doubled checked this on my Windows 7 machine and the LocID is appearing correctly for the FT_GetDeviceInfoDetail API call (see attached image).

I have also attached an image of our USBView (https://www.ftdichip.com/Support/Utilities.htm#MicrosoftUSBView) utility showing the location of the attached device (loc112).

The LocID is reported by the host machine, can you double check with USBView what location ID your device is reporting?


Best Regards,
FTDI Community
Title: Re: FT4222 FT_OpenEx with FT_OPEN_BY_LOCATION
Post by: PAS on December 25, 2020, 09:56:33 AM
Thank you for reply.

Received email from support that problem may be with USB3.0 host.
Yes, disabled routing usb devices thru USB3.0 host fixed problem and now devices have legal LocID values.
Title: Re: FT4222 FT_OpenEx with FT_OPEN_BY_LOCATION
Post by: FTDI Community on January 05, 2021, 05:55:21 PM
Hello,

Glad you have managed to resolve the issue.

Best Regards,
FTDI Community