Difference between revisions of "Repeater system full quad view IR configuration"

From BATC Wiki
Jump to navigation Jump to search
Line 41: Line 41:
 
  showquadformultipleinputs=yes
 
  showquadformultipleinputs=yes
 
  cascadedswitches=yes
 
  cascadedswitches=yes
 
+
 
  outputswitchcontrol=ir
 
  outputswitchcontrol=ir
 
  showoutputongpio=yes
 
  showoutputongpio=yes

Revision as of 12:17, 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. In the file that follows, note that IR codes of the form "2nec:0x17" first send the code for the upstream IR switch (in this case nec0x17), and then send the code to the downstream switch (in this case nec:0x12 which is set in the output2ndhdmicode=nec:0x12 parameter).

HDMIquad (Medium).JPG

Fragment of Config file:

# 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 6
availableinputs=6
activeinputhold=no
showquadformultipleinputs=yes
cascadedswitches=yes

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

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

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

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

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

input4name=Analogue Rxr
input4prioritylevel=7
input4activegpiopin=22
output4code=2nec:0x08
output4hdmiswitchpin=31
output4i2cchannel=5
output4audioi2cbit=4
input4announcemediatype=jpg
input4announcemediafile=/home/pi/tmp/input4.jpg
input4announcemediaduration=3

input5name=Spare 1
input5prioritylevel=7
input5activegpiopin=16
output5code=nec:0x59
output5hdmiswitchpin=29
output5i2cchannel=6
output5audioi2cbit=5
input5announcemediatype=jpg
input5announcemediafile=/home/pi/tmp/input5.jpg
input5announcemediaduration=10

input6name=Spare 2
input6prioritylevel=8
input6activegpiopin=19
output6code=nec:0x08
output6hdmiswitchpin=23
output6i2cchannel=7
output6audioi2cbit=6
input6announcemediatype=jpg
input6announcemediafile=/home/pi/tmp/input6.jpg
input6announcemediaduration=3

If it is desired to have the quad available as a source in the carousel, then the availableinputs= could be increased from 6 to 7, and the following code added to make the quad a source that is then selectable in the carousel:

input7name=Quad
input7prioritylevel=8
input7activegpiopin=21
output7code=2nec:0x18
output7hdmiswitchpin=24
output7i2cchannel=8
output7audioi2cbit=7
input7announcemediatype=jpg
input7announcemediafile=/home/pi/tmp/input7.jpg
input7announcemediaduration=3