>>>>> "Tim" == Tim Schneider <schneid5@xxxxxxxxxxxxxx> writes:
Tim> Dear all, I am currently working on connecting a self build sensor
Tim> with the HTC Desire running Android with hostmode enabled. I am
Tim> using a FTDI Chip and libftdi for the task. Since it might be
Tim> possible that I have multiple FTDI Devices connected, I cannot use
Tim> the ftdi_usb_open API. Instead i'm using ftdi_usb_find_all
Tim> afterwards ftdi_usb_open_dev. Then I read the
Tim> eeprom(ftdi_read_eeprom_getsize & ftdi_eeprom_decode), to determine
Tim> weather this is the sensor I'm looking for.
Connect the device to a Linux PC. If "dmesg" reports something like
[268963.174419] usb 1-3.3: New USB device found, idVendor=0403, idProduct=6010
[268963.174426] usb 1-3.3: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[268963.174432] usb 1-3.3: Product: LLBBC10
[268963.174436] usb 1-3.3: Manufacturer: IKDA
[268963.174440] usb 1-3.3: SerialNumber: 30
You can run
res = ftdi_usb_open_desc(ftdi_handle, 0x403, 0x6010, "LLBBC10", NULL);
to open the first device with "Product: LLBBC10"
or
res = ftdi_usb_open_desc(ftdi_handle, 0x403, 0x6010, "LLBBC10", 30);
for the exact 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
|