Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pylibftdi missing libftdi libusb on Windows install

I am trying to write a python bit-banging application to communicate with a FT232H eeprom using pylibftdi (over serial port).

I have installed the FT232H .dll using the installer provided by ftdichip (the default .dll install location is 'C:\Windows\System32\drivers'); but pylibftdi can not find libftdi or libusb.

enter image description here

An example of a pylibftdi base install on Windows would be greatly appreciated.

Note 1: I am aware of pyUSB, but this does not support Python 2.7.

Note 2: Under Linux (Ubuntu/Mint) the dependencies are installed as follows:

sudo apt-get install libftdi1
pip install pyusb

I need the equivalent for Windows 7.

like image 947
Ajax Avatar asked Oct 31 '25 01:10

Ajax


1 Answers

First install the USB driver as described here http://embedded-funk.net/running-libftdi-under-windows/

For me this meant using Zadig.exe (http://zadig.akeo.ie/) to replace the FT232R USB UART driver with libusbK driver. (Remember to click options->List all devices in Zadig)

Second download libftdi. From https://sourceforge.net/projects/picusb/files/ I downloaded https://sourceforge.net/projects/picusb/files/libftdi1-1.1_devkit_x86_x64_21Feb2014.zip/download

Locate your Python installation.For me that was c:\Anaconda3.

From libftdi1-1.1_devkit_x86_x64_21Feb2014.zip:

copy bin64\libusb-1.0.dll c:\Anaconda3\
copy bin64\libftdi1.dll c:\Anaconda3\
copy lib64\site-packages\* c:\Anaconda3\Lib\site-packages\

Test:

python -m pylibftdi.examples.list_devices
like image 115
mrtnlrsn Avatar answered Nov 02 '25 15:11

mrtnlrsn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!