Lirc
Lirc
What is Lirc?
Lirc is a infrared protocoll that enables to control other devices from the Dbox.
The Dbox has an extra "send" IR Diode above the IR Receiving Diode so you can for example control another Device trough the DBox.
This could be a VCR,DVD Recorder or a Tivo
Where can I find/check my model ?
http://lirc.sourceforge.net/remotes/
Download the file for your VCR etc and open it with an Text Editor

In this example we need REC and STOP Commands
Please use the exact writing (Capital/Lowercase)
There are also command with ms on how long the command needs to be send
Wait is also a command that could be used if the device cannot handle to many commands in quick success.
Create a start file record.lirc

Create a stop file stop.lirc

The code file from the LIRC site needs to be saved as lirc.conf
Copy them into /var/tuxbox/config
How do I install the files ?
-----------------------------------------------
orginale /var/tuxbox/start_neutrino
-----------------------------------------------
#!/bin/sh
/sbin/ifconfig eth0 192.168.0.42
/bin/lcdd
/bin/timerd
/bin/sectionsd
/bin/camd2
/var/zapit
/bin/controld
/bin/nhttpd
/bin/neutrino -flash -su
/sbin/halt
exit 0
-----------------------------------------------
modified /var/tuxbox/start_neutrino
-----------------------------------------------
#!/bin/sh
/sbin/lircd /var/tuxbox/config/lirc/lirc.conf
/sbin/ifconfig eth0 192.168.0.42
/bin/lcdd
/bin/timerd
/bin/sectionsd
/bin/camd2
/bin/zapit
/bin/controld
/bin/nhttpd
/bin/neutrino -flash -su
/sbin/halt
exit 0
-----------------------------------------------
/var/tuxbox/config/record.lirc
-----------------------------------------------
STANDBY 1000
WAIT 3000
AV 1000
WAIT 1000
RECORD 1000
-----------------------------------------------
/var/tuxbox/config/stop.lirc
-----------------------------------------------
STOP 1000
STANDBY 1000
-----------------------------------------------
/var/tuxbox/config/lirc.conf (for a type of VCR)
-----------------------------------------------
#
# this config file was automatically generated
# using lirc-0.5.4 on Tue Mar 16 19:44:10 1999
#
# contributed by Marco Flohrer
#
# brand: SEG
# model: 97P1R2CCF0
# supported devices: VCR 2200
#
#
# Remark:
# manually converted this from raw_codes to normal config file
# this is the first remote that uses pre_p and pre_s
#
# Christoph
begin remote
name SEG_VCR_2200
bits 8
flags SPACE_ENC
eps 30
aeps 100
header 8100 3933
one 555 1450
zero 555 450
ptrail 555
pre_data_bits 8
pre_data 0xA8
pre 555 3960
gap 20892
repeat_bit 0
begin codes
STANDBY 0x00000000000000A8
TV_VCR 0x0000000000000068
1 0x0000000000000080
2 0x0000000000000040
3 0x00000000000000C0
4 0x0000000000000020
5 0x00000000000000A0
6 0x0000000000000060
7 0x00000000000000E0
8 0x0000000000000010
9 0x0000000000000090
0 0x0000000000000000
TUNE_LEFT 0x000000000000008C
TUNE_RIGHT 0x00000000000000AC
PR+ 0x00000000000000E8
PR- 0x0000000000000018
OK 0x0000000000000094
MENU 0x0000000000000044
PLAY 0x0000000000000070
STOP 0x00000000000000B0
REW 0x0000000000000008
FFW 0x00000000000000F0
RECORD 0x0000000000000048
EJECT 0x0000000000000084
PAL_SEC 0x00000000000000F8
SLOW 0x00000000000000C8
PAUSE 0x0000000000000088
ASEL 0x0000000000000058
AV 0x000000000000006C
SP_LP 0x00000000000000D8
TR 0x0000000000000038
COUNT 0x00000000000000B8
GO_TO_ZERO 0x0000000000000050
INDEX- 0x00000000000000FC
INDEX+ 0x00000000000000CC
RESET_COUNT 0x00000000000000EC
end codes
end remote
Copyright © <05.01.2006>, < PT-1> Last Changes 15.04.2008