LIRC For OPENELEC
1.Add support LIRC in RPIAdd following in config.txt
it can be either done removing flash drive and from windows accessing
boot partiton ( as it fat 32) or using
root/openelec
Command: “mount -o remount,rw /flash”
Config.txt
==============
dtoverlay=lirc-rpi or
device_tree_overlay=lirc-rpi
# gpio_in_pin=18
2.reboot
3.Connect
Wires 5 or 3.3 V according to Module
and Signal to GPIO18,
For mY Module HS0038A2 I USED 5v Suply instead of 3.3
4. Test
modprobe lirc_rpi
mode2 -d /dev/lirc0
(you may need to killall lircd)
press button
it should display some code.
5.
Learnig new remote or ( if there is your remote - download from http://lirc.sourceforge.net/remotes/
To Learn new remote killall lircd
irrecod /storage/.config/lircd.conf
this will create /storage/.config/lircd.conf.conf
replace it with /storage/.config/lircd.conf
Press as Instructed , Enter Key Names are descibed below.
sample inputs..
"Now enter the names for the buttons.
Please enter the name for the next button (press
KEY_1
Now hold down button "KEY_1".
Please enter the name for the next button (press
KEY_2
###CISCO Remtoe Sample=======
begin remote
name /storage/.config/lircd.conf.conf
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9019 4460
one 591 1648
zero 591 540
ptrail 592
repeat 9020 2223
pre_data_bits 16
pre_data 0x20DF
gap 107834
toggle_bit_mask 0x0
begin codes
KEY_1 0x8877
KEY_2 0x48B7
KEY_3 0xC837
KEY_4 0x28D7
KEY_5 0xA857
KEY_6 0x6897
KEY_7 0xE817
KEY_7 0xE817
KEY_8 0x18E7
KEY_9 0x9867
KEY_0 0x08F7
KEY_UP 0x00FF
KEY_DOWN 0x807F
KEY_OK 0x22DD
KEY_OK 0x22DD
KEY_RIGHT 0x40BF
KEY_LEFT 0xC03F
KEY_POWER 0x10EF
KEY_SLEEP 0x708F
KEY_MUTE 0x906F
KEY_PAUSE 0x7689
KEY_PLAY 0xB04F
KEY_MENU 0xC23D
end codes
end remote
6.
After a reboot, you can see if your remote is working at this point by using Putty to ssh into your PI 2 and typing
irw
and if things are working you will see the remote's keys being recognized and displayed on screen.
No comments:
Post a Comment