[Tutor] PYFTDI Library for FT232H

John Battle jobattle at caltech.edu
Fri Aug 3 01:38:01 CEST 2012


I am relatively new to Pyton and am trying to use a library called 
pyftdi which is used to establish communication with USB chips made by 
FTDI.  I have been able to install the library and write a simple piece 
of code to discover my interfaces (I have two FT232H devices 
connected).  The following code seems to work to accomplish that:

#!/usr/bin/python
from pyftdi.pyftdi.ftdi import *
vps=[(0x0403,0x6014)]
devs=Ftdi.find_all(vps)
print devs

However I cannot figure out what to do next.  The devices in question 
are programmed n the FT245 Syncronous mode and I need to send a short 
string to one of them to start a data download and then receive straming 
data on the other one.

I have a C program that will do this but I need to do it in Python.

Any help would be gretly appreciated.

Thanks

John Battle





More information about the Tutor mailing list