5 How to install pylibftdi for DMX
mattzz edited this page 2021-05-13 00:18:26 +02:00

How to install pylibftdi

  1. Connect USB-DMX-Adapter

Check the connection:

$ dmesg|grep FTDI

Example output:

[    1.386483] usb 1-1.2: Manufacturer: FTDI
[    3.921620] usbserial: USB Serial support registered for FTDI USB Serial Device
[    3.921813] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[    3.928989] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
[  374.278597] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
  1. Install libftdi (see https://pylibftdi.readthedocs.io/en/0.13/installation.html):
  • $ sudo apt-get install libftdi-dev
  • $ sudo vi /etc/udev/rules.d/99-libftdi.rules

Enter the following into the rules file:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="dialout", MODE="0660"

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GROUP="dialout", MODE="0660"

  1. Install pylibftdi (see https://pylibftdi.readthedocs.io/en/0.13/installation.html):

Install Python installer:

  • $ sudo apt-get install python-pip
  • $ sudo apt-get install python3-pip

Install Python FTDI library:

  • $ sudo pip install pylibftdi
  • $ sudo python3 -m pip install pylibftdi