|
LIRC is a package that allows you to receive, decode and send the infra-red (IR) signals used by many commonly available remote controls. However the current STM implementation of LIRC device is limited to the receive and decode signals. Detailed information on LIRC project can be found in the official web site: http://www.lirc.org. Platforms supportedCurrently LIRC has been tested on the following STM platforms:
Notes:
RequirementsMake sure that the stlinux20-sh4-lirc-0.7.0-5.sh4.rpm package has been installed; it installs daemons, tools and docs. Starting from ST Linux Rel. 2.0 the LIRC drivers are included in the Kernel source tree. Configuring LIRC for STM platformsLIRC support can be used either built-in or as a loadable module. By default the kernel build configure it as a built-in module. Configuring LIRC as built-inWhen configuring the kernel:
Configuring and using LIRC as dynamic module
Starting the InfraRed decodingThe most important part of LIRC is the lircd daemon; it decodes IR signals received by the device drivers and provides the information on a socket, available for user applications. To start it on the target, type: target# lircd --device=/dev/lirc/0 /etc/lircd.conf The /etc/lircd.conf is installed by the LIRC package and represents the configuration file used by the daemon to decode the signals received from driver. Current version of the configuration file supports only the FUTARQUE remote control protocol. To check if the daemon has been correctly launched, we suggest you to run the irw application (provided with the LIRC package). irw will connect the daemon and will print the received data on the stdout. Note: installing the ST40 Linux distribution Rel. 2.0 the LIRC device will be created automatically. However you can create it as shown below: target# mkdir /dev/lirc target# mknod -m 666 /dev/lirc/0 c 61 0 Known limits
|
|||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||