Hello,
I need to get the serial number of a FT4232 chip.
I
first tried to do it the same way I saw in ftdi_open_desc function, using
directly the usb_get_string_simple function like this
:
usb_get_string_simple(ftdic[2]->usb_dev,
dev->descriptor.iSerialNumber, string, sizeof(string));
But I always
get an error code -5 ("Entity not found" in libusb documentation). I don't know
what it means but the fact ftdi_open function doesn't allow to specify a serial
string make me think that this part doesn't work correctly.
So I tried to
read eeprom datas to get the serial number. I use ftdi_read_eeprom in a 128
bytes buffer, but when I debug this function, I see that only 255 are read for
each byte.
Somebody can explain me if I forget something, or if this
function doesn't works, how could I get the serial number of my
chip?
Thanks. Damien Borie.
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|