Difference between revisions of "Repeater system basic IR configuration"

From BATC Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
  # 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 27:
 
  # 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 34:
 
  showquadformultipleinputs=yes
 
  showquadformultipleinputs=yes
 
  cascadedswitches=no
 
  cascadedswitches=no
 
+
 
  outputswitchcontrol=ir
 
  outputswitchcontrol=ir
 
  showoutputongpio=yes
 
  showoutputongpio=yes
Line 41: Line 41:
 
  outputi2caddress=3
 
  outputi2caddress=3
 
  outputi2cquadchannel=9
 
  outputi2cquadchannel=9
 
+
 
  input0name=Controller
 
  input0name=Controller
 
  output0code=nec:0x17
 
  output0code=nec:0x17
Line 47: Line 47:
 
  output0i2cchannel=1
 
  output0i2cchannel=1
 
  output0audioi2cbit=0
 
  output0audioi2cbit=0
 
+
***************** Under Construction **************
+
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
 

Revision as of 11:41, 22 February 2022

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
# 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