Email me at:

vsergeev@san.rr.com

Lirc How-to (For newbies) By vsergeev




Lirc stands for Linux Infrared Remote Control, since the Agenda VR3 includes Lirc you can control most of your infrared stuff at home, all you need is a specific config file.

I have this one VCR I was controlling a couple days ago. An example of things that you might be able to control are: TV, VCR, Phillips TIVO, Infrared MP3 Jukebox, and other things.... the only problem you might face is finding the right config file for the thing you are going to control.

Anyway the first step in controlling something is finding the config file, look here:

http://www.lirc.org/remotes/

Now pick the brand name of the thing you want to control. For example I picked this config file for my panasonic VCR:

http://www.lirc.org/remotes/panasonic/VCR

So once you have found the appropriate config file, make a PPP connection with your agenda and upload the config file to any location (I chose /home/default), now that you have uploaded your specific config file goto your agenda and type:

su

Type in the password, then:

/sbin/lircd <config file name>


So for example I would type:

/sbin/lircd VCR


Remember be in the same directory as your config file. Now you can start controlling by typing:

rc SEND_ONCE <actual name> <command>

Look at this carefully, here is part of my VCR config file:

begin remote

name VCR
bits 24
flags SPACE_ENC
eps 20
aeps 200

The /actual name/ part stands for the word right after the word name as shown above. You have to type the actual name and not the config file name because sometimes the actual name may be different from the config file name.

Next the /command/ part is going to be one of the commands you are going to send for example POWER, VOL+, VOL-, REC. To find out the commands that are available for you, check in the config file again, under the section:

begin codes
POWER 0x000000000000BCB5
PAUSE/STILL 0x0000000000006069
STOP 0x0000000000000009
STILL_ADV 0x0000000000003039
REW 0x0000000000004049
PLAY 0x0000000000005059
FF 0x000000000000C0C9
REC 0x0000000000001019
SLOW 0x000000000000F0F9
SLOW- 0x000000000000F1F8
SLOW+ 0x0000000000007178
SLP/SP 0x00000000008050D9
VCR/TV 0x0000000000006C65
CHAN- 0x000000000000ACA5
CHAN+ 0x0000000000002C25
INPUT_SELECT 0x000000000000030A
MEMORY_PLAY 0x0000000000002F26
AUDIO_OUT 0x000000000000CCC5
MONITOR 0x0000000000008980
CLOCK/COUNTER 0x0000000000006A63
TAPE_REMAIN 0x000000000000AAA3
RESET 0x0000000000002A23
end codes

So I could pick the command I wanted, for example if I wanted to send the POWER command then I would get my agenda close to the appliance I am sending to (my VCR) and type:

rc SEND_ONCE VCR POWER

Then my VCR would turn on if it is off and off if it is on.

So lets review this again:

First you find your config file from:

http://www.lirc.org/remotes/

Select the brand, download the config file to your pc then to your agenda.
Then type:

/sbin/lircd <config file name>


Then you get your agenda near your appliance that you are going to send to and type:

rc SEND_ONCE <actual name> <command>


And thats about it.

Thanks,
Vanya Sergeev (vsergeev)

Please send comments, suggestions, or anything else to:

vsergeev@san.rr.com


All brands and product names may be trademarks of their respective owners.