Kodi Community Forum
[Linux] HOW-TO Logitech Harmony One - NFY! - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [Linux] HOW-TO Logitech Harmony One - NFY! (/showthread.php?tid=63731)

Pages: 1 2 3 4 5


- lpallard - 2011-04-08

My receiver is a HP OVU400103/00 Media Center USB IR Infrared Receiver.

Confirmed to be compatible with both the harmony one and Linux by bmcclure on his thread on openelec.

No the receiver did not come with a remote.

Let me know what you think!


- Hammi - 2011-04-09

Are you able to get any readings with mode2 instead of irw?


- lpallard - 2011-04-09

Yes mode2 output signals. I can see pulse 450 pulse 500 pulse 800 stuff like that.

What does it mean?


- Hammi - 2011-04-10

Your remote/receiver is working. Try using irrecord to create a working config.


- lpallard - 2011-04-10

Ok I hope you're right! I will try with irrecord and post back!


- Hammi - 2011-04-11

fingers xed!


- lpallard - 2011-04-11

Mmm OK I "think" I might have found the problem. The lircd.conf file I have been using so far was the file available for the harmony one on lirc's website (http://lirc.sourceforge.net/remotes/logitech/HarmonyOne)

I just realized the file header says:

Quote:# NOTE:
# The key mappings below correspond to the default settings
# for the "MythTV" device in the Logitech remote software.

SO I think this config file is good only IF you configure the remote as MythTV remote with the Logitech software... Am I right?

If I'm right, then I'm confused as to how to configure the remote and create a config file for a general experience (both within XBMC and on the desktop)?

I configured the remote using Logitech's software and the instructions at http://openelec.tv/forum/12-guides-tips-and-tricks/3218-in-progress-harmony-one-complete-guide

My final goal is to have the remote used to control my TV (no big deal already working), start and stop specific applications (Mplayer, VLC, Amarok, MythTV, etc) and most of all, control XBMC.... If I use irrecord, I understand it will record the IR pulses, but how do I associate them with specific OS commands??

Thanks a lot!
Smile


- Hammi - 2011-04-12

lpallard Wrote:If I'm right, then I'm confused as to how to configure the remote and create a config file for a general experience (both within XBMC and on the desktop)?

It works - with any software supporting lirc -, if lirc understands correctly what your remote sends. It really doesn't matter how you configure your Harmony unless that setup is one which you reflect in lirc as well.

With other, non-configurable remotes, you just have less options, as you would need to choose the right lirc config (or create your own with irrecord). For the Harmony, the options are (significantly) increased, which might be what's confusing you.

For XBMC, the steps should be: (1) configure lirc so that irw reads keypresses from your harmony; (2) configure XBMC so that it does, upon keypresses, what you want. The easiest approach is probably to configure the Harmony as MCE remote, to use a pre-existing lirc MCE configuration, and then start off with the standard XBMC config.


- lpallard - 2011-04-13

OK so far here's what I've done:

1- used irrecord to capture the remote's keypresses and store the config in /etc/lircd.conf

2- created a keymap.xml file in

Code:
$HOME/.xbmc/userdata/keymaps/keymap.xml
3- and I basically created the mapping like this example:

during irrecord, I assigned the key_pause to the key Pause. Then in keymap.xml I entered the mapping like:

<key_pause>Pause</key_pause>

Am I on the right track or not??


- Hammi - 2011-04-13

If, with the config you have put together using irrecord, irw does show output when you press keys on your remote, then you have configured your remote in lirc properly.

For use in XBMC, you need Lircmap.xml and keymap.xml.

For some basic functionality, there should be no need to adjust keymap.xml. If you want or have to, please take care that you only use "valid" key names for the keys. E.g., <key_pause> will not work, but the key has to be named <pause>. See the wiki as linked above for valid key names.

Finally, there is also a short how-to on the wiki for configuring lirc with irrecord to work with XBMC.


- lpallard - 2011-04-22

ok this is getting on my nerves and maybe you or anybody else know what to do...

i used irrecord to record the keystrokes of my harmony remote. i entered the namespaces that described the best the function of the key i was pressing. for example the volume + key i used key_volumeup as the namespace. i enter totally different namespaces for each keys. the issue is when i try the key mapping with irw, i get the same output for different keys. a good example in my case is with the little restart button just located beside the mute button. i assigned the namespace key_restart to this key. while i was verifying the mapping with irw i noticed that when i press the menu button i also get blablabla_key_restart just like if i had entered the same namespace twice.

it also happened with the touchscreen buttons yellow and red who have the same output as channel up and channel down....

i tried several time to redo from scratch but same problem.

any idea?
thanks!


- Hammi - 2011-04-22

Could you please post your current config?


- lpallard - 2011-04-22

Here you go mister:

Quote:# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Thu Apr 21 18:26:55 2011
#
# contributed by
#
# brand: harmony
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name harmony
bits 13
flags RC6
eps 30
aeps 100

header 2632 882
one 443 439
zero 443 439
pre_data_bits 24
pre_data 0x1BFF83
gap 60315
min_repeat 2
# suppress_repeat 2
# uncomment to suppress unwanted repeats
toggle_bit_mask 0x8000
rc6_mask 0x100000000

begin codes
key_clear 0x1BF5
key_numeric_0 0x1BFF
key_select 0x1BF4
key_numeric_7 0x1BF8
key_numeric_8 0x1BF7
key_numeric_9 0x1BF6
key_numeric_4 0x1BFB
key_numeric_5 0x1BFA
key_numeric_6 0x1BF9
key_numeric_1 0x1BFE
key_numeric_2 0x1BFD
key_numeric_3 0x1BFC
key_record 0x1BE8
key_pause 0x1BE7
key_stop 0x1BE6
key_previous 0x1BE4
key_next 0x1BE5
key_rewind 0x1BEA
key_forward 0x1BEB
key_play 0x1BE9
key_mute 0x1BF1
key_restart 0x1BDC
key_volumeup 0x1BEF
key_volumedown 0x1BEE
key_channelup 0x1BA4
key_channeldown 0x1BA2
key_down 0x1BE0
key_up 0x1BE1
key_left 0x1BDF
key_right 0x1BDE
key_enter 0x1BDD
key_menu 0x1BDB
key_exit 0x1BDC
key_info 0x1BF0
key_help 0x1BD9
key_tv 0x1BB9
key_video 0x1BB5
key_media 0x1BB8
key_graphicseditor 0x1BB6
key_news 0x1BDA
key_subtitle 0x1BA5
key_front 0x1BE3
key_blue 0x1BA1
key_green 0x1BA3
key_media 0x1BF2
key_power 0x1BF3
key_red 0x1BA4
key_yellow 0x1BA2
end codes

end remote

I also noticed that I really forgot 2 keys while I was recording the keystrokes with irrecord. DO I need to restart again from scratch or I can start a new recording session and only record these 2 keys, and copy/paste the codes in the existing lircd.conf file?


- Hammi - 2011-04-23

Yes, C&P into the config works.

What's the output of mode2, when you press the keys which trigger two key presses? Sometimes, individual keys send more than one key code.


- lpallard - 2011-04-23

hey Hammi, the faulty keys do not output two codes at the same time but the wrong code instead. Lets take the exit button that outputs the same code as the restart button as an example. As you can see in my config file above, both the key keyUrestart & key_exit have the same hex code 0x1BDC so thats why irw output the same thing no matter if i press the exit or restart key.

i hope we are on the same page Smile

as for your request, ive sent the output of mode2 for each keys separately in two txt files using mode2 > file.txt and heres the result:

key exit:
Code:
space 16777215
pulse 2700
space 850
pulse 500
space 350
pulse 550
space 350
pulse 500
space 800
pulse 500
space 800
pulse 1400
space 850
pulse 500
space 350
pulse 500
space 400
pulse 500
space 400
pulse 500
space 350
pulse 500
space 400
pulse 500
space 350
pulse 550
space 400
pulse 450
space 400
pulse 500
space 400
pulse 450
space 450
pulse 900
space 400
pulse 500
space 400
pulse 450
space 450
pulse 450
space 400
pulse 500
space 800
pulse 550
space 350
pulse 500
space 400
pulse 500
space 400
pulse 900
space 850
pulse 500
space 400
pulse 450
space 450
pulse 450
space 400
pulse 950
space 800
pulse 500
space 400
pulse 500
space 400
pulse 900
space 400
pulse 500
space 61058
pulse 2650
space 850
pulse 450
space 450
pulse 450
space 450
pulse 450
space 850
pulse 450
space 850
pulse 1350
space 850
pulse 500
space 400
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 900
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 850
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 900
space 900
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 900
space 850
pulse 450
space 450
pulse 450
space 450
pulse 900
space 400
pulse 450
space 61078
pulse 2600
space 900
pulse 450
space 400
pulse 450
space 450
pulse 450
space 900
pulse 450
space 850
pulse 1300
space 900
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 850
space 500
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 850
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 900
space 900
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 900
space 850
pulse 450
space 450
pulse 400
space 500
pulse 850
space 450
pulse 450

and key restart:
Code:
space 16777215
pulse 2700
space 800
pulse 500
space 350
pulse 550
space 350
pulse 500
space 850
pulse 500
space 800
pulse 1400
space 800
pulse 500
space 400
pulse 500
space 350
pulse 500
space 400
pulse 500
space 350
pulse 500
space 450
pulse 450
space 400
pulse 500
space 400
pulse 450
space 450
pulse 450
space 400
pulse 500
space 400
pulse 900
space 450
pulse 450
space 400
pulse 500
space 400
pulse 450
space 900
pulse 450
space 400
pulse 500
space 400
pulse 450
space 450
pulse 450
space 400
pulse 950
space 850
pulse 450
space 400
pulse 500
space 400
pulse 450
space 400
pulse 950
space 850
pulse 450
space 450
pulse 450
space 450
pulse 900
space 400
pulse 450
space 61078
pulse 2650
space 900
pulse 450
space 400
pulse 500
space 400
pulse 450
space 850
pulse 500
space 850
pulse 1350
space 850
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 500
space 400
pulse 450
space 400
pulse 500
space 400
pulse 500
space 400
pulse 450
space 450
pulse 850
space 450
pulse 450
space 450
pulse 450
space 400
pulse 500
space 850
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 500
space 400
pulse 900
space 850
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 900
space 900
pulse 450
space 400
pulse 450
space 450
pulse 900
space 450
pulse 450
space 60082
pulse 2650
space 850
pulse 450
space 450
pulse 450
space 400
pulse 450
space 900
pulse 450
space 850
pulse 1350
space 850
pulse 450
space 450
pulse 450
space 400
pulse 500
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 450
space 400
pulse 900
space 450
pulse 450
space 450
pulse 450
space 400
pulse 450
space 900
pulse 450
space 450
pulse 450
space 400
pulse 450
space 450
pulse 450
space 450
pulse 900
space 850
pulse 450
space 400
pulse 500
space 450
pulse 400
space 450
pulse 900
space 900
pulse 450
space 400
pulse 450
space 450
pulse 850
space 500
pulse 450