Harmony Remote

!!! Check the MCE receiver
!! IR Receiver
{{{
lsusb
Bus 002 Device 006: ID 050d:0017 Belkin Components
Bus 002 Device 005: ID 0a5c:4503 Broadcom Corp.
Bus 002 Device 004: ID 0a5c:4502 Broadcom Corp.
Bus 002 Device 003: ID 0a5c:4500 Broadcom Corp.
Bus 002 Device 002: ID 147a:e03e Formosa Industrial Computing, Inc.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
}}}
{{{
dmesg | grep generic-usb
[ 12.364931] generic-usb 0003:147A:E03E.0001: timeout initializing reports
[ 12.365139] generic-usb 0003:147A:E03E.0001: hiddev96,hidraw0: USB HID v1.00 Device [Formosa21 eHome Infrared Transceiver] on usb-0000:00:04.0-3/input1
[ 12.372595] generic-usb 0003:0A5C:4502.0002: input,hidraw1: USB HID v1.11 Keyboard [HID 0a5c:4502] on usb-0000:00:04.0-6.1/input0
[ 12.378742] generic-usb 0003:0A5C:4503.0003: input,hidraw2: USB HID v1.11 Mouse [HID 0a5c:4503] on usb-0000:00:04.0-6.2/input0
}}}
{{{
sudo dpkg-reconfigure lirc
}}}
http://www.fscker.ca/rc/2010/04/27/mediagate-mg-ir01bk-and-ubuntu-9-10/ \
https://help.ubuntu.com/community/LIRC
{{{
sudo apt-get install lirc-modules-source
sudo vi /usr/src/lirc-0.8.6/drivers/lirc_mceusb/lirc_mceusb.c
/* Formosa Industrial Computing MG-IR01BK */
{ USB_DEVICE(VENDOR_FORMOSA, 0xe03e) },
sudo dpkg-reconfigure lirc-modules-source
sudo service lirc restart
ls -lh /dev/lirc*
}}}
!!! Configuring lirc
!! hardware.conf
Override the lircd configuration file and kernel mceusb modules
sudo vi /etc/lirc/hardware.conf
{{{

REMOTE_LIRCD_CONF=”/mnt/apps/lirc/lircd.conf.harmony”


#Try to load appropriate kernel modules
LOAD_MODULES=”false”

}}}
!! lircd.conf
{{{
#Configuration for the Windows Media Center Transceivers/Remotes (all) remote:
#include “/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb”
include “/mnt/apps/lirc/lircd.conf.harmony”
}}}
!! lircd.conf.harmony
{{{
begin remote
name Harmony550KnoppMyth
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 895 885
zero 895 885
plead 910
gap 116038
min_repeat 2
toggle_bit_mask 0x800
begin codes
Blue 0x17A9
Green 0x17AE
Red 0x178B
Yellow 0x17B8
Go 0x17BB
Select 0x17A5
NumberEnter 0x178E
InputMusic 0x1799
InputPictures 0x179A
InputRadio 0x178C
InputTV 0x179C
InputVideos 0x1798
PowerToggle 0x17BD
Stop 0x17B6
Replay 0x17A4
Advance 0x179E
Play 0x17B5
Record 0x17B7
Rewind 0x17B2
FastForward 0x17B4
Pause 0x17B0
Guide 0x179B
Info 0x178A
Exit 0x179F
Menu 0x178D
VolumeUp 0x1790
VolumeDown 0x1791
ChannelUp 0x17A0
ChannelDown 0x17A1
ChannelPrev 0x1792
DirectionUp 0x1794
# UpArrow 0x1794 Same as DirectionUp
DirectionDown 0x1795
# DownArrow 0x1795 Same as DirectionDown
DirectionLeft 0x1796
DirectionRight 0x1797
Mute 0x178F
1 0x1781
2 0x1782
3 0x1783
4 0x1784
5 0x1785
6 0x1786
7 0x1787
8 0x1788
9 0x1789
0 0x1780
end codes
end remote
}}}
!! Harmony to KnoppMyth mappings
||Harmony Soft Key||KnoppMyth Key||Myth Command
|Main Menu|PowerToggle|
|Recorded|InputRadio|
|Video|InputVideos|
|Music|InputMusic|
|||
|Live TV|InputTV|
|Change Input|Go|
|Pictures|InputPictures|
|Weather|VolumeDown|
||Harmony Key||KnoppMyth Key||Myth Command
|Up Arrow|DirectionUp|
|Down Arrow|DirectionUp|
|||
|Menu|Menu|
|Info|Info|
|Exit|Exit|
|Guide|Guide|
|||
|Red|Red|
|Green|Green|
|Yellow|Yellow|
|Blue|Blue|
|||
|Up|DirectionUp|
|Down|DirectionDown|
|Left|DirectionLeft|
|Right|DirectionRight|
|OK|Select|
|||
|Volume Down|Not used (AMP)|
|Volume Up|Not used (AMP)|
|Channel Up|ChannelUp|
|Channel Down|ChannelDown|
|Mute|Not used (AMP)|
|||
|Prev|ChannelPrev|
|Play|Play|
|Pause|Pause|
|Fast Forward|FastForward|
|Skip Forward|Advance|
|Skip Back|Replay|
|Rewind|Rewind|
|Record|Record|
|Stop|Stop|
|||
|1|1|
|2|2|
|3|3|
|4|4|
|5|5|
|6|6|
|7|7|
|8|8|
|9|9|
|Plus|NumberEnter|
|0|0|
|E|NumberEnter|