Tutorials → lircd with USB Infrared Toy

lircd with USB Infrared Toy

This tutorial shows you how to use lircd with the "dangerousprototypes.com USB Infrared Toy 2".
Patch by Peter Kooiman, instructions by Gianni Ceccarelli and Steffen Buchner.

For RaspBMC users:
All needed files are here. The binary is in the subfolder "BINARY_FOR_RASPBMC" and needs to be copied to /usr/sbin/:
cp /usr/sbin/lircd /usr/sbin/lircd_backup
wget http://www.my404.de/downloads/lircd_usbirtoy.zip
unzip lircd_usbirtoy.zip
cp lircd_usbirtoy/BINARY_FOR_RASPBMC/lircd /usr/sbin
chmod +x /usr/sbin/lircd
rm lircd_usbirtoy.zip
rm -R lircd_usbirtoy
After that proceed at step "Check if new version is installed" below.
If something fails you can undo the changes by typing:
mv /usr/sbin/lircd_backup /usr/sbin/lircd

For all other users:
  • First install the needed packages:
    sudo apt-get install make automake libtool help2man git pkg-config
  • Option 1 (recommended): Then download the modified source code of lirc directly. This differs from git because the patch could only be applied to an older version:
    cd ~
    wget http://my404.de/downloads/lircd_usbirtoy.zip
    unzip lircd_usbirtoy.zip
    cd lircd_usbirtoy
  • Option 2 (not needed, may fail): If you want to try to apply the patches to the current version instead, type:
    git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
    cd lirc
    wget http://www.my404.de/files/lircd_usbirtoy/0001-Add-driver-for-USB-Infrared-Toy-in-sample-mode.patch
    wget http://www.my404.de/files/lircd_usbirtoy/0002-Add-USB-Infrared-Toy-driver-to-setup-system.patch
    patch -p1 < 0001-Add-driver-for-USB-Infrared-Toy-in-sample-mode.patch
    patch -p1 < 0002-Add-USB-Infrared-Toy-driver-to-setup-system.patch
  • Start compiling (this will take several minutes -> make a coffee):
    In setup.sh select: (1) Driver configuration, (8) USB devices, (0) Dangerous Prototypes USB Infrared Toy, (1) /dev/tty/ACM0 and then (3) Save configuration & run configure.
    When the configure process has finished, proceed compiling by typing:
    make clean
  • Quit lircd if running:
    kill "$(pidof lircd)"
  • Install the new version: (not needed if another version via packet manager is already installed)
    sudo make install
  • The compiled binary is at the wrong place, so copy over the original binary:
    sudo cp daemons/lircd /usr/sbin/
  • Check if new version is installed:
    /usr/sbin/lircd --driver=help
    This should show:
    Driver `help' not supported.
    Supported drivers:
  • Edit the following entries in /etc/lirc/hardware.conf:
    or the following entries if the ones above do not exist:
    #Chosen Remote Control
  • Then start to learn your remote:
    irrecord --driver=usb_irtoy my_remote.conf

Neulich wurde eine in 3D gedrehte Folge von "Walker, Texas Ranger" im Kino gezeigt. Es gab keine Überlebenden.