Thank you for this fats answer.
I used FT_PROG to check the chip programation and it looks like it's well
programmed. The serial number is correctly set, as well as other parameters.
Despite this, the read function return 255 for each byte.
Is it possible that in this version of the chip, the command to read eeprom
is different? (SIO_READ_EEPROM_REQUEST = 0x90)
Thanks again.
Damien Borie.
----- Original Message -----
From: "Uwe Bonnes" <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, September 28, 2009 1:43 PM
Subject: Re: Get serial number
"Damien" == Damien Borie <dbe@xxxxxxxxxxx> writes:
Damien> Hello, I need to get the serial number of a FT4232 chip.
Damien> I first tried to do it the same way I saw in ftdi_open_desc
Damien> function, using directly the usb_get_string_simple function
like
Damien> this :
Damien> usb_get_string_simple(ftdic[2]->usb_dev,
Damien> dev->descriptor.iSerialNumber, string, sizeof(string));
If you didn't program a serial number, there is no serial number.
Damien> So I tried to read eeprom datas to get the serial number.
Damien> I use ftdi_read_eeprom in a 128 bytes buffer, but when
Damien> I debug this function, I see that only 255 are read for each
byte.
This is expected for an unprogrammed device...
--
Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|