Difference between revisions of "Repeater system basic IR configuration"

From BATC Wiki
Jump to navigation Jump to search
(Created page with "The section of the config file for basic IR configuration is shown here for an HDMI switch with the following control codes: {| class="wikitable" |- ! Function !! IR Code |-...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Back to [[Repeater Controller|repeater controller]] main page
 +
 
The section of the config file for basic IR configuration is shown here for an HDMI switch with the following control codes:
 
The section of the config file for basic IR configuration is shown here for an HDMI switch with the following control codes:
  
Line 15: Line 17:
 
| Quad || 0x18
 
| Quad || 0x18
 
|}
 
|}
 +
 +
Substitute the codes for your HDMI switch if they are different.
 +
 +
[[File:Basic HDMI with buffer.JPG|400px]]
 +
 +
Note that there is scope for confusion between the numbering on HDMI switches and the numbering that the repeater controller uses.  The repeater controller HDMI is fed to Input 1 of the HDMI switch, but is known in the config file as Input 0.  Similarly, the first receiver input (in this case the 70cms Ryde) is fed to input 2 of the HDMI switch but is referred to by the controller as input 1.
  
 
  # Input config
 
  # Input config
 
  # Recommended gpio pins for "input active" are 32, 35, 18, 22, 16, 19 and 21
 
  # Recommended gpio pins for "input active" are 32, 35, 18, 22, 16, 19 and 21
 
+
 
  # announcemediatype determines the player used
 
  # announcemediatype determines the player used
 
+
 
  # Switcher can use "ir" or "gpio" or "i2c"
 
  # Switcher can use "ir" or "gpio" or "i2c"
 
  # IR uses a TX on GPIO pin 12
 
  # IR uses a TX on GPIO pin 12
Line 27: Line 35:
 
  # activeinputhold (yes/no) means that lower priority inputs do not get replaced by higher priority (except pri 1)
 
  # activeinputhold (yes/no) means that lower priority inputs do not get replaced by higher priority (except pri 1)
 
  # Show Quad is yes/no and overides activeinputhold
 
  # Show Quad is yes/no and overides activeinputhold
 
+
 
  # Number of available inputs does not include the controller, so is max 3 for a 4-input switch
 
  # Number of available inputs does not include the controller, so is max 3 for a 4-input switch
 
  availableinputs=3
 
  availableinputs=3
Line 34: Line 42:
 
  showquadformultipleinputs=yes
 
  showquadformultipleinputs=yes
 
  cascadedswitches=no
 
  cascadedswitches=no
 
+
outputswitchcontrol=ir
+
outputswitchcontrol=ir
showoutputongpio=yes
+
showoutputongpio=yes
outputhdmiresetcode=nec:0x17
+
outputhdmiresetcode=nec:0x17
output2ndhdmicode=nec:0x17
+
outputhdmiquadcode=nec:0x18
outputhdmiquadcode=nec:0x18
+
outputi2caddress=3
outputi2caddress=3
+
outputi2cquadchannel=9
outputi2cquadchannel=9
+
 
+
input0name=Controller
input0name=Controller
+
output0code=nec:0x17
output0code=nec:0x17
+
output0hdmiswitchpin=36
#output0code=2nec:0x17 (daisy chain)
+
output0i2cchannel=1
output0hdmiswitchpin=36
+
output0audioi2cbit=0
output0i2cchannel=1
+
output0audioi2cbit=0
+
input1name=70cms Ryde
 
+
input1prioritylevel=1
input1name=Stream Input
+
input1activegpiopin=32
input1prioritylevel=1
+
output1code=nec:0x12
input1activegpiopin=32
+
output1hdmiswitchpin=37
output1code=nec:0x12
+
output1i2cchannel=2
output1hdmiswitchpin=37
+
output1audioi2cbit=1
output1i2cchannel=2
+
input1announcemediatype=jpg
output1audioi2cbit=1
+
input1announcemediafile=/home/pi/tmp/input1.jpg
input1announcemediatype=jpg
+
input1announcemediaduration=3
input1announcemediafile=/home/pi/tmp/input1.jpg
+
input1announcemediaduration=3
+
input2name=23cms Ryde
 
+
input2prioritylevel=2
input2name=QO-100 RX
+
input2activegpiopin=35
input2prioritylevel=2
+
output2code=nec:0x59
input2activegpiopin=35
+
output2hdmiswitchpin=38
output2code=nec:0x59
+
output2i2cchannel=3
output2hdmiswitchpin=38
+
output2audioi2cbit=2
output2i2cchannel=3
+
input2announcemediatype=jpg
output2audioi2cbit=2
+
input2announcemediafile=/home/pi/tmp/input2.jpg
input2announcemediatype=jpg
+
input2announcemediaduration=3
input2announcemediafile=/home/pi/tmp/input2.jpg
+
input2announcemediaduration=3
+
input3name=Stream rxr
 
+
input3prioritylevel=3
input3name=3.4 GHz Ryde
+
input3activegpiopin=18
input3prioritylevel=3
+
output3code=nec:0x08
input3activegpiopin=18
+
output3hdmiswitchpin=33
output3code=nec:0x08
+
output3i2cchannel=4
output3hdmiswitchpin=33
+
output3audioi2cbit=3
output3i2cchannel=4
+
input3announcemediatype=jpg
output3audioi2cbit=3
+
input3announcemediafile=/home/pi/tmp/input3.jpg
input3announcemediatype=jpg
+
input3announcemediaduration=3
input3announcemediafile=/home/pi/tmp/input3.jpg
 
input3announcemediaduration=3
 

Latest revision as of 11:56, 22 February 2022

Back to repeater controller main page

The section of the config file for basic IR configuration is shown here for an HDMI switch with the following control codes:

Function IR Code
Input 1 0x17
Input 2 0x12
Input3 0x59
Input 4 0x08
Quad 0x18

Substitute the codes for your HDMI switch if they are different.

Basic HDMI with buffer.JPG

Note that there is scope for confusion between the numbering on HDMI switches and the numbering that the repeater controller uses. The repeater controller HDMI is fed to Input 1 of the HDMI switch, but is known in the config file as Input 0. Similarly, the first receiver input (in this case the 70cms Ryde) is fed to input 2 of the HDMI switch but is referred to by the controller as input 1.

# Input config
# Recommended gpio pins for "input active" are 32, 35, 18, 22, 16, 19 and 21

# announcemediatype determines the player used

# Switcher can use "ir" or "gpio" or "i2c"
# IR uses a TX on GPIO pin 12
# GPIO uses pins 36, 37, 38, 33, 31, 29, 23, 24.  Can be enabled with ir or i2c
# i2c uses FMS6501A on Output channel 1
# activeinputhold (yes/no) means that lower priority inputs do not get replaced by higher priority (except pri 1)
# Show Quad is yes/no and overides activeinputhold

# Number of available inputs does not include the controller, so is max 3 for a 4-input switch
availableinputs=3
activeinputhold=no
# Set next parameter to no if you do not want (or do not have) a quad display
showquadformultipleinputs=yes
cascadedswitches=no

outputswitchcontrol=ir
showoutputongpio=yes
outputhdmiresetcode=nec:0x17
outputhdmiquadcode=nec:0x18
outputi2caddress=3
outputi2cquadchannel=9

input0name=Controller
output0code=nec:0x17
output0hdmiswitchpin=36
output0i2cchannel=1
output0audioi2cbit=0

input1name=70cms Ryde
input1prioritylevel=1
input1activegpiopin=32
output1code=nec:0x12
output1hdmiswitchpin=37
output1i2cchannel=2
output1audioi2cbit=1
input1announcemediatype=jpg
input1announcemediafile=/home/pi/tmp/input1.jpg
input1announcemediaduration=3

input2name=23cms Ryde
input2prioritylevel=2
input2activegpiopin=35
output2code=nec:0x59
output2hdmiswitchpin=38
output2i2cchannel=3
output2audioi2cbit=2
input2announcemediatype=jpg
input2announcemediafile=/home/pi/tmp/input2.jpg
input2announcemediaduration=3

input3name=Stream rxr
input3prioritylevel=3
input3activegpiopin=18
output3code=nec:0x08
output3hdmiswitchpin=33
output3i2cchannel=4
output3audioi2cbit=3
input3announcemediatype=jpg
input3announcemediafile=/home/pi/tmp/input3.jpg
input3announcemediaduration=3