FTDI Community

General Category => Discussion - Drivers => Topic started by: radimoid on November 30, 2020, 09:57:14 AM

Title: What says FT_DEVICE_LIST_INFO_NODE type?
Post by: radimoid on November 30, 2020, 09:57:14 AM
Hello,
in my app, I would like to recognize the FTDI chip type (FT232H vs FT245R). Can this be done by checking FT_DEVICE_LIST_INFO_NODE type? I didn't find any documentation to this struct member. I have just recognized that FT232H has set its value to 0x08 and FT245R to 0x05. Is this general rule? Is there any documentation of type codes?

I know that the type could be also recognized from eeprom product id. But this can be reflashed to any value (as it happened to me once).
Title: Re: What says FT_DEVICE_LIST_INFO_NODE type?
Post by: FTDI Community on December 01, 2020, 04:39:25 PM
Hello,

Yes that is correct. Please refer to the D2XX Programmer's Guide (https://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf):

FT_DEVICE (DWORD)
FT_DEVICE_232BM = 0
FT_DEVICE_232AM = 1
FT_DEVICE_100AX = 2
FT_DEVICE_UNKNOWN = 3
FT_DEVICE_2232C = 4
FT_DEVICE_232R = 5 (also includes FT245R)
FT_DEVICE_2232H = 6
FT_DEVICE_4232H = 7
FT_DEVICE_232H = 8
FT_DEVICE_X_SERIES = 9

Best Regards,
FTDI Community
Title: Re: What says FT_DEVICE_LIST_INFO_NODE type?
Post by: radimoid on December 16, 2020, 08:52:14 AM
Thank you for the reply. One more question. Is there any way how to distinguish 232R from FT245R. FT_PROG application can distinguish between them. But I'm curious how can this be done from my app.
Title: Re: What says FT_DEVICE_LIST_INFO_NODE type?
Post by: FTDI Community on December 16, 2020, 04:38:59 PM
Hello,

This information is proprietary to FTDI.

You can read the product description to determine the product type.
The default product descriptions can be found below:

FT232R USB UART
FT245R USB FIFO

The other option you have is to program a unique serial number or description to help you distinguish between the two device types.

Best Regards,
FTDI Community
Title: Re: What says FT_DEVICE_LIST_INFO_NODE type?
Post by: radimoid on December 17, 2020, 05:00:17 AM
Ok. Thank you for info.