This tutorial will help you configure LIRC for use with Ira / Tira devices in a few steps.
You'll need to know the USB port address for your device. We recommend a command line tool to use which lists all attached usb Ira / Tira devices in your system. If you don't like to use this tool there is another way to get it. First, unplug your Ira/Tira device. Execute the following command to display all the usb serial ports:
Plug in your Ira/Tira device and wait a few seconds. Execute the above command again. Compare the two lists. The device that appears only in the second list corresponds to Tira 2.1.
Currently the LIRC version that has full support for Ira / Tira can be downloaded from the LIRC cvs repository. You also found information how to start LIRC configuration.
Start config script:
Select Driver configuration in the initial screen.
Select USB devices
Now you can choose from two different drivers,depending on usage. With the first driver which works in six bytes mode, LIRC can receive IR signals from far distance which can be used to remote control your PC. With this driver sending IR signals is also possible. The second driver which works in timing mode, has only one purpose, to record IR signals which you can transmit later. In this mode, Tira uses a short distance receiver which can receive IR signals from 4 inches (10cm).
In the next screen you have to set the usb port address of your device. Step 1 contains information how to determine this address.
Select Save configuration and run configure in the next screen.
Now you have installed LIRC.
Execute the command
to start LIRC daemon. Testing with tools included in LIRC: MODE2 - use this program to display the pulse and space times for your remote control. Available only in timing mode. It exits with an error message "This program does not work for this hardware yet" using 6 Bytes mode. Recording IR signals: IRRECORD You can use this program to record remote control signals for LIRC. To record signals, you need to know the names of the buttons that you can record. To list available button names, execute command
to list available buttons names for recording. You can record signals in both 6 Bytes or Timing mode. Start IRRECORD again with flag -f to force RAW mode.
"myremote" is the name of the config file where IRRECORD will store the remote control signals. Note:you will need to know this name for sending IR signals, as irrecord stores it in the config file as the remote control name. IRRECORD will give you instructions to do. First,it will analize the IR signals. For this reason in Timing mode: you will be asked to press as many buttons as possible and hold each of them down for about 1-2 seconds. It will draw dots on the screen. Hold down each button until it generates 3-5 dots. When IRRECORD received enough IR signals it will notify you about the gap signal,and asks you to enter the name of the button what you want to record with the following message: Please enter the name for the next button (press <ENTER> to finish recording) Use the names you listed before. (like KEY_0) You will be instructed to hold down the key,a few seconds later IRRECORD informs you if it was successful. When finished recording just leave the key name empty. in 6 Bytes mode: the difference is that initially you need to hold down the same button for a long time to generate the dots instead of pressing more buttons as in timing.
When finished recording, rename your file (myremote) to lircd.conf and copy it to /etc/lircd directory. To use the new config file, you need to restart lircd. To do this, find the pid of the process and kill it, then run it again. Execute
to get <processid>. Then execute
Transmit IR signals: IRSEND You can use this program to send recorded IR signals to control your TV, etc. Note: Transmitting signals is only available when your Ira/Tira device operates in six bytes mode, and only signals which were recorded in timing mode are available to transmit. Transmit example:
This example command will send the recorded KEY_0 button's IR signals.