Difference between revisions of "Repeater LIRC Configuration"
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | Back to [[Repeater Controller|repeater controller]] main page | ||
===Setting Up the Key Codes=== | ===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. | + | 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. | ||
+ | |||
+ | See this page for more details: https://wiki.batc.org.uk/Ryde_remote_controls#Using_a_custom_remote_control | ||
===Recording the Codes=== | ===Recording the Codes=== | ||
Line 51: | Line 56: | ||
===Formatting the Codes for the Configuration File=== | ===Formatting the Codes for the Configuration File=== | ||
− | The configuration file includes a number of lines for IR codes: | + | 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 | + | |
− | + | outputswitchcontrol=ir | |
− | outputhdmiresetcode= | + | outputhdmiresetcode=nec:0x17 |
− | output2ndhdmicode= | + | 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. | |
− |
Latest revision as of 18:26, 13 February 2022
Back to repeater controller main page
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.
See this page for more details: https://wiki.batc.org.uk/Ryde_remote_controls#Using_a_custom_remote_control
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.