I am working with _TWO_ devices FT245AM based, EEProm, FTD2XX.DLL V.1.06.06, WinMe or WinXP. SerialNumber is made different for the two devices. One device at time works fine, and is correctly listed with function FT_ListDevices(). Two devices together do not work. FT_ListDevices() count two devices, correctly list one of them, and return FT_INVALID_HANDLE for the other one.
The problem is only with FT245AM, with FT245BM the _TWO_ devices seem to work together fine.
Is that a known behavior? What my be wrong? What can I do?
Yes. FT_ListDevices returns FT_INVALID_HANDLE for DevId=0, FT_OK for DevId=1, FT_DEVICE_NOT_FOUND for others DevId. Note that is the first device that become wrong connecting the second one. Before the connection of second device, the first one was OK.
Have you programmed the EEPROMs so that the two devices have different serial numbers? I have used several FT245AMs with a hub without problems after they have been individually programmed with different serial numbers so that the hub and host can distinguish between the two. I also programmed the devices with different product IDs---but retained the FTDI manufacturer ID. (You can contact FTDI and they will issue you a range of Product IDs that you can use with your own products.)
if(numdevs >0) { devindex = CBUSB->ItemIndex; // get item selector from GUI // get the serial number from the GUI string if(devindex >=0)strcpy(devstring, CBUSB->Items->Strings[CBUSB-> ItemIndex].c_str()); fts = FT_OpenEx((PVOID)devstring, (DWORD)FT_OPEN_BY_SERIAL_NUMBER, &FTH);
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.