LIRC: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
>NedBot
m (Robot: Changing Category:Remote to Category:Remotes; cosmetic changes)
Line 1: Line 1:
==Lircmap.xml==
==Lircmap.xml==
===Definitions===
=== Definitions ===
'''A custom Lircmap.xml''' - This file merely defines the translation, bridging a '''LIRC_button''' to a '''XBMC_button'''. The file is literally named '''Lircmap.xml''' and is stored in the [[userdata]] directory. Do not confuse the '''Lircmap.xml''' with [[Keymap.xml]].
'''A custom Lircmap.xml''' - This file merely defines the translation, bridging a '''LIRC_button''' to a '''XBMC_button'''. The file is literally named '''Lircmap.xml''' and is stored in the [[userdata]] directory. Do not confuse the '''Lircmap.xml''' with [[Keymap.xml]].


'''LIRC_Button''' - what your lircd.conf calls the physical button on your remote control.  
'''LIRC_Button''' - what your lircd.conf calls the physical button on your remote control.  
   
   
'''XBMC_button''' - an XBMC internal button title.
'''XBMC_button''' - an XBMC internal button title.  


'''device name''' - is defined in your lircd.conf file in the "name" field.  
'''device name''' - is defined in your lircd.conf file in the "name" field.  


This information can be had using the test application "irw" and then hitting some buttons. More on this in the [[Lirc_and_Lircmap.xml#Testing_Lirc_Output]] section below.
This information can be had using the test application "irw" and then hitting some buttons. More on this in the [[Lirc and Lircmap.xml#Testing Lirc Output]] section below.


===File Format===
=== File Format ===
Lircmap.xml format is as follows:
Lircmap.xml format is as follows:


Line 21: Line 21:
   </lircmap>
   </lircmap>


====Device Name====
==== Device Name ====
The device name is defined in your lircd.conf file in the "name" field. This information can be had using the test application "irw" and then hitting some buttons. More on this in the [[Lirc_and_Lircmap.xml#Testing_Lirc_Output]] section below.
The device name is defined in your lircd.conf file in the "name" field. This information can be had using the test application "irw" and then hitting some buttons. More on this in the [[Lirc and Lircmap.xml#Testing Lirc Output]] section below.


====XBMC_Button Names====
==== XBMC_Button Names ====
There are two type of XBMC_buttons in XBMC.  
There are two type of XBMC_buttons in XBMC.  


Line 33: Line 33:
   <menu>
   <menu>


These buttons are predefined in [[keymap.xml]] and handle all functions needed for a working system. For a complete list of buttons see [[keymap.xml#Remote_Buttons]].
These buttons are predefined in [[keymap.xml]] and handle all functions needed for a working system. For a complete list of buttons see [[keymap.xml#Remote Buttons]].


* Customized buttons are for people who require more buttons than are defined by default. For example;
* Customized buttons are for people who require more buttons than are defined by default. For example;
Line 45: Line 45:
  FYI : obc stands for original button code and is a legacy of the old xbox IR remote system
  FYI : obc stands for original button code and is a legacy of the old xbox IR remote system


==Lirc Configuration==
== Lirc Configuration ==
===Information===
=== Information ===
A complete Lirc configuration document is currently beyond the scope of this manual. More information on LIRC is available on the offical website www.lirc.org  
A complete Lirc configuration document is currently beyond the scope of this manual. More information on LIRC is available on the offical website www.lirc.org  


===Testing Lirc Output===
=== Testing Lirc Output ===
use the command 'irw' to test your LIRC configuration
use the command 'irw' to test your LIRC configuration


Line 64: Line 64:


[[Category:Linux]]
[[Category:Linux]]
[[Category:Remote]]
[[Category:Remotes]]

Revision as of 12:26, 26 September 2011

Lircmap.xml

Definitions

A custom Lircmap.xml - This file merely defines the translation, bridging a LIRC_button to a XBMC_button. The file is literally named Lircmap.xml and is stored in the userdata directory. Do not confuse the Lircmap.xml with Keymap.xml.

LIRC_Button - what your lircd.conf calls the physical button on your remote control.

XBMC_button - an XBMC internal button title.

device name - is defined in your lircd.conf file in the "name" field.

This information can be had using the test application "irw" and then hitting some buttons. More on this in the Lirc and Lircmap.xml#Testing Lirc Output section below.

File Format

Lircmap.xml format is as follows:

  <lircmap>
       <remote device="devicename">
               <XBMC_button>LIRC_button</XBMC_button>
               ...
       </remote>
  </lircmap>

Device Name

The device name is defined in your lircd.conf file in the "name" field. This information can be had using the test application "irw" and then hitting some buttons. More on this in the Lirc and Lircmap.xml#Testing Lirc Output section below.

XBMC_Button Names

There are two type of XBMC_buttons in XBMC.

  • Predefined Buttons are labeled using their button title such as:
  <left>
  <right>
  <title>
  <menu>

These buttons are predefined in keymap.xml and handle all functions needed for a working system. For a complete list of buttons see keymap.xml#Remote Buttons.

  • Customized buttons are for people who require more buttons than are defined by default. For example;
  <obc1>BUTTON1</obc1>
  ...
  <obc254>BUTTON254</obc254>
Note : These obc buttons must be defined in keymap.xml under the [[<universalremote>]] heading
FYI : obc stands for original button code and is a legacy of the old xbox IR remote system

Lirc Configuration

Information

A complete Lirc configuration document is currently beyond the scope of this manual. More information on LIRC is available on the offical website www.lirc.org

Testing Lirc Output

use the command 'irw' to test your LIRC configuration

  xbmc@xbmclinux:~$ irw
  0000000000040004 00 ARROW_UP Cyp_Se_WitheHome
  0000000000040004 00 VOLUME_UP Cyp_Se_WitheHome
  0000000000040004 00 NUMPAD_6 Cyp_Se_WitheHome
  0000000000040004 00 INFO Cyp_Se_WitheHome

In this example Cyp_Se_WitheHome is the device name ARROW_UP, VOLUME_UP, NUMPAD_6, INFO are button names

If you wish to redefine the button names it can be done in /etc/lircd.conf