Difference between revisions of "Repeater LIRC Configuration"

From BATC Wiki
Jump to navigation Jump to search
Line 56: Line 56:
 
  outputhdmiresetcode=nec:0x17
 
  outputhdmiresetcode=nec:0x17
 
  output2ndhdmicode=nec:0x08
 
  output2ndhdmicode=nec:0x08
 
 
  output0code=nec:0x17
 
  output0code=nec:0x17
 
 
  output1code=nec:0x12
 
  output1code=nec:0x12
 
 
  output2code=nec:0x59
 
  output2code=nec:0x59
 
 
  output3code=nec:0x08
 
  output3code=nec:0x08
  
Line 70: Line 66:
 
  outputhdmiresetcode=nec:0x17
 
  outputhdmiresetcode=nec:0x17
 
  output2ndhdmicode=nec:0x08
 
  output2ndhdmicode=nec:0x08
 
 
  output0code=nec:0x17
 
  output0code=nec:0x17
 
 
  output1code=nec:0x12
 
  output1code=nec:0x12
 
 
  output2code=nec:0x59
 
  output2code=nec:0x59
 
 
  output3code=2nec:0x17
 
  output3code=2nec:0x17
 
 
  output4code=2nec:0x12
 
  output4code=2nec:0x12
 
 
  output5code=2nec:0x59
 
  output5code=2nec:0x59
 
 
  output6code=2nec:0x08
 
  output6code=2nec:0x08
  
So, the format for the codes is protocol:scancode.  If the inout is daisy-chained, the format is 2protocol:scancode, and the "output2ndhdmicode" must refrence the code to select the second controller.
+
So, the format for the codes is protocol:scancode.  If the desired input is daisy-chained, the format is 2protocol:scancode, and the "output2ndhdmicode" must refrence the code to select the second controller.

Revision as of 19:54, 14 January 2022

Setting Up the Key Codes

Use your Ryde receiver to record the key codes from the IR sender for your HDMI switch. To do this you will need to go to log in to the Ryde by ssh, and type "menu" and press enter. This should bring up the Console Menu. Go to Select option 7, IR Check.

Recording the Codes

You will need to make a list of the key codes that you want to use, and also check the protocol used. Press a key and you should see a response on the screen like this:

8950.350025: lirc protocol(nec): scancode = 0x17
8950.350035: event type EV_MSC(0x04): scancode = 0x17
8950.350035: event type EV_SYN(0x00).

The information required is the protocol (nec in this case) and the scancode (0x17 in this case). Here are 2 example lists of keycodes:

Portta 4-port HDMI Switch. Protocol nec.

Key scancode
Input 1 0x17
Input 2 0x12
Input 3 0x59
Input 4 0x08
Quad View 0x18

Generic eBay 4-port HDMI Switch. Protocol nec.

Key scancode
Input 1 0x19
Input 2 0x1b
Input 3 0x11
Input 4 0x15
Quad View 0x04

Note that only the following protocols are supported: nec, necx, nec32, sanyo, rc6_0, rc6_6a_20, rc6_6a_24, rc6_6a_32, rc6_mce, rc5, rc5x_20, rc5_sz, jvc, sony12, sony15, sony20, sharp.

Formatting the Codes for the Configuration File

The configuration file includes a number of lines for IR codes. This is how they should be configured for the Portta 4-way HDMI switch described above:

outputswitchcontrol=ir
outputhdmiresetcode=nec:0x17
output2ndhdmicode=nec:0x08
output0code=nec:0x17
output1code=nec:0x12
output2code=nec:0x59
output3code=nec:0x08

If a second identical switch were to be daisy-chained in front of input 4 (to give 7 available inputs including the controller), the codes would be:

outputswitchcontrol=ir
outputhdmiresetcode=nec:0x17
output2ndhdmicode=nec:0x08
output0code=nec:0x17
output1code=nec:0x12
output2code=nec:0x59
output3code=2nec:0x17
output4code=2nec:0x12
output5code=2nec:0x59
output6code=2nec:0x08

So, the format for the codes is protocol:scancode. If the desired input is daisy-chained, the format is 2protocol:scancode, and the "output2ndhdmicode" must refrence the code to select the second controller.