The package is for now on test_pypi it will be moved on pypi in times !

The package is based on the library pyftdi which uses libusb 1.x as a native dependency and thus should be installed.

Linux

apt-get install libusb-1.0

udev rules configuration

Udev rules need to be created to communicate with devices without using administrator privilege. A special rule 11-ftdi.rules is available in the rules directory (it might be necessary to adapt it if you want to use different devices than mine), you can copy it to /etc/udev/rules.d and run the following command as root :

udevadm control --reload-rules
udevadm trigger

Windows

The easiest way is to install zadig (it will detect ftdi device automatically)

  1. Start up the Zadig utility
  2. Select Options/List All Devices, then select the FTDI devices you want to communicate with. Its names depends on your hardware, i.e. the name stored in the FTDI EEPROM.
  • With FTDI devices with multiple channels, such as FT2232 (2 channels) and FT4232 (4 channels), you must install the driver for the composite parent, not for the individual interfaces. If you install the driver for each interface, each interface will be presented as a unique FTDI device and you may have difficulties to select a specific FTDI device port once the installation is completed. To make the composite parents to appear in the device list, uncheck the Options/Ignore Hubs or Composite Parents menu item.
  • Be sure to select the parent device, i.e. the device name should not end with (Interface N), where N is the channel number.
    • for example Dual RS232-HS represents the composite parent, while Dual RS232-HS (Interface 0) represents a single channel of the FTDI device. Always select the former.
  1. Select libusb-win32 (not WinUSB) in the driver list.
  2. Click on Replace Driver

Pip Install

Finally, run the following command to install my package (only in test.pypi for now).

pip install -i https://test.pypi.org/simple/ apt-interface
#pip install apt-interface