Archive for the LIRC Category

lirc

Posted in LIRC on September 9, 2009 by csecyborg

LIRC-LINUX INFRARED REMOTE CONTROL

LIRC is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls.

The most important part of LIRC is the lircd daemon that will decode IR signals received by the device drivers and provide the information on a socket. It will also accept commands for IR signals to be sent if the hardware supports this. The second daemon program called lircmd will connect to lircd and translate the decoded IR signals to mouse movements.

Sending infrared signals


The LIRC package contains the irsend tool for sending infrared signals to e.g. your TV or CD player. For reliable transmission a good config file is even more important than for receiving

SOFTWARE: LIRC lirc-0.8.5.tar.bz2, 700 kB


LIRC is a package that supports receiving and sending IR signals of the most common IR remote controls. A list of supported hardware is available on the main page. It contains a daemon that decodes and sends IR signals, a mouse daemon that translates IR signals to mouse movements and a couple of user programs that allow to control your computer with a remote control.
For Irman support download the latest libirman library. If you want to link the LIRC drivers statically to your kernel, have a look at Karsten Scheibler's static LIRC package. 

lirc

Posted in LIRC on September 8, 2009 by csecyborg

In our college our department has an expo based on LINUX .In that our team had selected to do LIRC.

You may ask what is LIRC?

To know in detail about lirc refer the site “www.lirc.org

I searched how to do this project in linux.In that i had seen a website “lnx manoweb.com”.

In that they given how to do an lirc receiver.The components neede are

  1. TSOP 1738 Irreceiver

  2. C1 – 4.7µF capacitor
  3. D1 – 1N4148 diode
  4. R1 – 4k7 resistor (4.7 kOhm)
  5. IC2 – 78L05, 100mA, voltage regulator (TO-92 casing)
  6. 9-pin or 25-pin SUB-D socket

The circuit is connected as in “manoweb.com” and we get the LIRC Receiver.

Connect to the serial port of the system and do the following

  1. Download pacakage of lirc(lirc-0.8.5.tar.bz2)

extract it as “tar jxvf lirc-0.8.5.tar.bz2”

    After this all the command are done in terminal of linux. We had downloaded lirc package in desktop.

In terminal we do the following

  1. cd Desktop

2. cd lirc-0.8.5

3. ./setup.sh

setup.sh written by Karsten Scheibler, 1999-JUN-28

If you have problems or questions please consult the mailing list

<http://lists.sourceforge.net/mailman/listinfo/lirc-list&gt;

Configuration: .setup.config, executable shell script: configure.sh

Starting the generated shell script which will call configure with the right

parameters…

checking for a BSD-compatible install… /usr/bin/install -c

checking whether build environment is sane… yes

checking for gawk… no

checking for mawk… mawk

checking whether make sets $(MAKE)… yes

checking for gcc… gcc

checking for C compiler default output file name… a.out

checking whether the C compiler works… yes

checking whether we are cross compiling… no

checking for suffix of executables…

checking for suffix of object files… o

checking whether we are using the GNU C compiler… yes

checking whether gcc accepts -g… yes

checking for gcc option to accept ISO C89… none needed

checking for style of include used by make… GNU

checking dependency style of gcc… gcc3

checking whether gcc and cc understand -c and -o together… yes

checking for a BSD-compatible install… /usr/bin/install -c

checking whether make sets $(MAKE)… (cached) yes

checking for mknod… /bin/mknod

checking for mkfifo… /usr/bin/mkfifo

checking for depmod… /sbin/depmod

checking for libusb-config… no

checking whether ln -s works… yes

checking build system type… i686-pc-linux-gnu

checking host system type… i686-pc-linux-gnu

checking for a sed that does not truncate output… /bin/sed

checking for grep that handles long lines and -e… /bin/grep

checking for egrep… /bin/grep -E

checking for ld used by gcc… /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld… yes

checking for /usr/bin/ld option to reload object files… -r

checking for BSD-compatible nm… /usr/bin/nm -B

checking how to recognise dependent libraries… pass_all

.

.

.

.

.

Now enter ‘make’ and ‘make install’ to compile and install the package.

kamban@kamban-desktop:~/Desktop/lirc-0.8.5$

4.sudo make

5.sudo make install

Afer this it is necessary to connect lirc receiver in the system

6.sudo setserial /dev/ttyS0 uart none

7.sudo depmod -a

8.sudo modprobe lirc_serial

9.sudo lircd

After this some time we get the error

lircd: there seems to already be a lircd process with pid 12653

lircd: otherwise delete stale lockfile /var/run/lircd.pid

    10.sudo rm/var/run/lircd.pid

then give

sudo lircd

12.sudo mode2

mode2:could not open /dev/lirc

mode2: default_init(): Device or resource busy

to remove this we give this command

13.sudo rm/dev/lirc

then give the command

sudo mode2

after this we get the pulse

pulse 100

space 123

.

.

.

.

.

.

.

.

to quit from this ctrl c

then record it using

14. sudo irrecord /etc/lircd.conf

if any error appears then record it by

15.sudo irrecord -f /etc/lircd.conf

we can record it with our own name to the button by disabling the default button.

16. sudo irrecord /etc/lircd.conf –disable namespace

now record the signal for each button by holding the button.

After this we give restart the lircd then

17.sudo irw

it will test our remote

The connection of our system with remote had been done succesfully if upto this step is done .

If you have doubt inthe above description please refer “lnx.manoweb.com”

In our project we did how to connect an mplayer with the remote and we done it by downloading

Mplayer-mingw.zip

installing it by refer the procedure

In terminal we give

cd which come out from desktop

1. $ mplayer

2.$  mplayer -lircconf saranya.conf

3.$ sudo mplayer -lircconf saranya.conf *.mp3

LIRC…………

Posted in LIRC on August 11, 2009 by csecyborg

Hi……. friends….

LIRC is a Linux Infrared Remote Control and the complete details about the documentation, software usage, software downloads all are given in detail in following link.

http://www.lirc.org/arahtml/index.html

See to this link for LIRC components required and for the connections

The most important part of LIRC is the lircd daemon that will decode IR signals received by the device drivers and provide the information on a socket. It will also accept commands for IR signals to be sent if the hardware supports this. The second daemon program called lircmd will connect to lircd and translate the decoded IR signals to mouse movements.

The LIRC package contains the irsend tool for sending infrared signals to e.g. your TV or CD player. For reliable transmission a good config file is even more important than for receiving

SOFTWARE:

LIRC lirc-0.8.5.tar.bz2, 700 kB

LIRC is a package that supports receiving and sending IR signals of the most common IR remote controls. A list of supported hardware is available on the main page. It contains a daemon that decodes and sends IR signals, a mouse daemon that translates IR signals to mouse movements and a couple of user programs that allow to control your computer with a remote control.
For Irman support download the latest libirman library. If you want to link the LIRC drivers statically to your kernel, have a look at Karsten Scheibler’s static LIRC package.

http://www.linuxjournal.com/article/8811

(refer this above website for reference)

http://lnx.manoweb.com/lirc/?partType=section&partName=introduction

(refer above for how to build serial receiver)