Difference between revisions of "Repeater LIRC Configuration"

From BATC Wiki
Jump to navigation Jump to search
Line 46: Line 46:
 
| Quad View || 0x04
 
| 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:
 +
outputswitchcontrol=ir
 +
showoutputongpio=yes
 +
outputhdmiresetcode=KEY_1
 +
output2ndhdmicode=
 +
 +
input0name=Controller
 +
output0code=KEY_1

Revision as of 18:10, 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: outputswitchcontrol=ir showoutputongpio=yes outputhdmiresetcode=KEY_1 output2ndhdmicode=

input0name=Controller output0code=KEY_1