Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 9.57 KB | None | 0 0
  1. # -------------------------------------- NOTES --------------------------------------
  2. # IMPORTANT! - This module was designed for a maximum of a 128x128 matrix.
  3. #              The maximum slot number for mappings, and input/output names is 128
  4. #              making the range for N (1 - 128).
  5. #
  6. #              Functionality for 8 routing presets has been allocated as a maximum
  7. #              which means that the max value for N in that case is 8 effectively
  8. #              making the range for N (1 - 8)
  9. #
  10. #            - Prefix all portions of each line with the # to comment the remaining
  11. #              portion of the line out
  12. # -----------------------------------------------------------------------------------
  13.  
  14. # VIRTUAL INPUT -> PHYSICAL INPUT TRANSLATIONS : virtual_mapping[N]: {physical input}
  15. # (Where N = virtual input)
  16.  
  17.     #                    MD-4x2
  18.     #                 |----------|
  19.     #  Primary PC 1 - |          | - Output 1
  20.     #  Primary PC 2 - |          | - Output 2
  21.     #   Backup PC 1 - |          |
  22.     #   Backup PC 2 - |          |
  23.     #                 |----------|
  24.  
  25.     #                    DM-TX
  26.     #                 |----------|
  27.     #   Laptop Rear - |          | - Output 1
  28.     #    Clickshare - |          |
  29.     #                 |----------|
  30.  
  31.     #                               DMPS
  32.     #                   |---------------------------|
  33.     #           MD4x2 - | HDMI 1             HDMI 2 | - VC Content
  34.     #           MD4x2 - | HDMI 2               DM 3 | - Left Display
  35.     #                 - | HDMI 3               DM 4 | - Right Display
  36.     #  SX80 Monitor 1 - | HDMI 4                    |
  37.     #  SX80 Monitor 2 - | HDMI 5                    |
  38.     #                 - | HDMI 6                    |
  39.     #                   |---------------------------|
  40.  
  41.     # DMPS Video Inputs (ANALOG_OUTPUT 1/2/6)
  42.     virtual_mapping[1]: 0    # 0d = No Route
  43.     virtual_mapping[2]: 1    # 1d = HDMI Input 1
  44.     virtual_mapping[3]: 2    # 2d = HDMI Input 2
  45.     virtual_mapping[4]: 3    # 3d = HDMI Input 3
  46.     virtual_mapping[5]: 4    # 4d = HDMI Input 4
  47.     virtual_mapping[6]: 5    # 5d = HDMI Input 5
  48.     virtual_mapping[7]: 6    # 6d = HDMI Input 6
  49.     virtual_mapping[8]: 7    # 7d = DM 7
  50.     virtual_mapping[9]: 8    # 8d = DM 8
  51.     virtual_mapping[10]: 0   # ...
  52.     virtual_mapping[11]: 0   # ...
  53.     virtual_mapping[12]: 0   # ...
  54.     virtual_mapping[13]: 0   # ...
  55.     virtual_mapping[14]: 0   # ...
  56.  
  57.     # MD4x2 Inputs (ANALOG_OUTPUT 3/4)
  58.     virtual_mapping[15]: 0  # N/A
  59.     virtual_mapping[16]: 1  # HDMI IN 1 (Room PC #1 Out 1)
  60.     virtual_mapping[17]: 2  # HDMI IN 2 (Room PC #1 Out 2)
  61.     virtual_mapping[18]: 3  # HDMI IN 3 (Room PC #2 Out 1)
  62.     virtual_mapping[19]: 4  # HDMI IN 4 (Room PC #2 Out 2)
  63.  
  64.     # DM-TX-4K-202-C Inputs (ANALOG_OUTPUT 5)
  65.     virtual_mapping[20]: 3  # N/A
  66.     virtual_mapping[21]: 1  # HDMI IN 1 (Laptop 1)
  67.     virtual_mapping[22]: 2  # HDMI IN 2 (Clickshare)
  68.     virtual_mapping[23]: 0  # Auto
  69.  
  70.     # DMPS Audio Inputs (ANALOG_OUTPUT 7/8)
  71.     virtual_mapping[30]: 0 # 0d = No Route
  72.     virtual_mapping[31]: 1 # 1d = Analog Input 1
  73.     virtual_mapping[32]: 2 # 2d = Analog Input 2
  74.     virtual_mapping[33]: 3 # 3d = Analog Input 3
  75.     virtual_mapping[34]: 4 # 4d = Analog Input 4
  76.     virtual_mapping[35]: 5 # 5d = Analog Input 5
  77.     virtual_mapping[36]: 6 # 6d =  HDMI 1
  78.     virtual_mapping[37]: 7 # 7d =  HDMI 2
  79.     virtual_mapping[38]: 8 # 8d =  HDMI 3
  80.     virtual_mapping[39]: 9 # 9d =  HDMI 4
  81.     virtual_mapping[40]: 10 # 10d =  HDMI 5
  82.     virtual_mapping[41]: 11 # 11d =  HDMI 6
  83.     virtual_mapping[42]: 12 # 12d = DM 7 Input
  84.     virtual_mapping[43]: 13 # 13d = DM 8 Input
  85.  
  86.     # virtual_mapping[44]:
  87.     # virtual_mapping[45]:
  88.     # virtual_mapping[46]:
  89.     # virtual_mapping[47]:
  90.     # virtual_mapping[48]:
  91.     # virtual_mapping[49]:
  92.     # virtual_mapping[50]:
  93.  
  94.  
  95. # ROUTING PRESETS : routing_preset[N]: {virtual input} > {physical output 1}, {physical output 2}, ...
  96. # (Where N = preset number)
  97. # NOTE: multiple routings are delimited by ;
  98.  
  99.     # Routing For SX80 Codec Content Sources
  100.     routing_preset[1]: 5 > 1 ; 6 > 2 ; 21 > 5 ; 8 > 6          ; 39 > 7 ; 39 > 8  # Laptop 1
  101.     routing_preset[2]: 5 > 1 ; 6 > 2 ;          9 > 6          ; 39 > 7 ; 39 > 8  # Laptop 2
  102.     routing_preset[3]: 5 > 1 ; 6 > 2 ; 22 > 5 ; 8 > 6          ; 39 > 7 ; 39 > 8  # Clickshare
  103.     routing_preset[4]: 5 > 1 ; 6 > 2 ; 16 > 3 ; 17 > 4 ; 2 > 6 ; 39 > 7 ; 39 > 8  # Room PC (Primary Output)
  104.     routing_preset[5]: 5 > 1 ; 6 > 2 ; 4 > 6                   ; 39 > 7 ; 39 > 8  # Cable TV
  105.  
  106.     # Route SX80 Codec
  107.     routing_preset[6]: 5 > 1 ; 6 > 2 ; 39 > 7 ; 39 > 8 # route for video conference
  108.  
  109.     # Routing For HDCP Content Sources
  110.     routing_preset[7]:  8 > 1 ; 8 > 2 ; 21 > 5 ; 8 > 6           ; 42 > 7 ; 30 > 8  # Laptop 1
  111.     routing_preset[8]:  9 > 1 ; 9 > 2 ;          9 > 6           ; 43 > 7 ; 30 > 8  # Laptop 2
  112.     routing_preset[9]:  8 > 1 ; 8 > 2 ; 22 > 5 ; 8 > 6           ; 42 > 7 ; 30 > 8  # Clickshare
  113.     routing_preset[10]: 2 > 1 ; 3 > 2 ; 16 > 3 ; 17 > 4 ; 2 > 6  ; 36 > 7 ; 30 > 8  # Room PC (Primary Output)
  114.     routing_preset[11]: 4 > 1 ; 4 > 2 ; 4 > 6                    ; 38 > 7 ; 30 > 8  # Cable TV
  115.  
  116.     # NOTE: PC outputs are fixed so that only the secondary outputs go to the right display and only the primary
  117.     #       PC outputs go to the left display. When primary PC is sent to the left display, the user has no choice
  118.     #       to send the secondary output of the primary PC to the left display for instance, the system automatically
  119.     #       fixes the routing so that the primary output of the selected PC is sent to the left display in this case.
  120.     #
  121.     #       The DM-TX-301-C also has the limitation of not being able to route clickshare to one destination, and the
  122.     #       rear laptop to another because they are fed from the same output off the DM transmitter.
  123.  
  124.  
  125.     # Admin routing for SX80 content
  126.     routing_preset[20]: 16 > 3 ; 2 > 6 ; 36 > 7 ; 36 > 8  # Primary PC
  127.     routing_preset[21]: 18 > 3 ; 2 > 6 ; 36 > 7 ; 36 > 8  # Backup PC
  128.     routing_preset[22]: # VC Output 1  // should really be disabled
  129.     routing_preset[23]: # VC Output 2  // should really be disabled
  130.     routing_preset[24]: 21 > 5 ; 8 > 6 ; 42 > 7 ; 42 > 8 # Laptop Rear
  131.     routing_preset[25]: 9 > 6 ; 43 > 7 ; 43 > 8 # Laptop Front
  132.     routing_preset[26]: 22 > 5 ; 8 > 6 ; 42 > 7 ; 42 > 8  # Clickshare
  133.     routing_preset[27]: 1 > 6 ; 30 > 7 ; 30 > 8 # No Source
  134.  
  135.     # Admin routing for left monitor
  136.     routing_preset[28]: 2 > 1 ; 16 > 3 ; 36 > 7 ; 30 > 8  # Primary PC
  137.     routing_preset[29]: 2 > 1 ; 18 > 3 ; 36 > 7 ; 30 > 8  # Backup PC
  138.     routing_preset[30]: 5 > 1 ; 39 > 7 ; 39 > 8 # VC Output 1
  139.     routing_preset[31]: 6 > 1 ; 40 > 7 ; 40 > 8 # VC Output 2
  140.     routing_preset[32]: 21 > 5 ; 8 > 1 ; 42 > 7 ; 42 > 8  # Laptop Rear
  141.     routing_preset[33]: 9 > 1 ; 43 > 7 ; 43 > 8  # Laptop Front
  142.     routing_preset[34]: 22 > 5 ; 8 > 1 ; 42 > 7 ; 42 > 8  # Clickshare
  143.     routing_preset[35]: 1 > 1 ; 30 > 7 ; 30 > 8  # No Source
  144.  
  145.     # Admin routing for right monitor
  146.     routing_preset[36]: 3 > 2 ; 17 > 4 ; 36 > 7 ; 30 > 8  # Primary PC
  147.     routing_preset[37]: 3 > 2 ; 19 > 4 ; 36 > 7 ; 30 > 8  # Backup PC
  148.     routing_preset[38]: 5 > 2 ; 39 > 7 ; 39 > 8 # VC Output 1
  149.     routing_preset[39]: 6 > 2 ; 40 > 7 ; 40 > 8 # VC Output 2
  150.     routing_preset[40]: 21 > 5 ; 8 > 2 ; 42 > 7 ; 42 > 8  # Laptop Rear
  151.     routing_preset[41]: 9 > 2 ; 43 > 7 ; 43 > 8  # Laptop Front
  152.     routing_preset[42]: 22 > 5 ; 8 > 2 ; 42 > 7 ; 42 > 8  # Clickshare
  153.     routing_preset[43]: 1 > 2 ; 30 > 7 ; 30 > 8  # No Source
  154.  
  155.     # routing_preset[44]:  
  156.     # routing_preset[45]:  
  157.     # routing_preset[46]:  
  158.     # routing_preset[47]:  
  159.     # routing_preset[48]:  
  160.     # routing_preset[49]:  
  161.  
  162.     # PC default routing
  163.     routing_preset[50]: 16 > 3 ; 17 > 4 ; 2 > 1 ; 3 > 2 ; 36 > 7 ; 30 > 8
  164.  
  165. # VIRTUAL INPUT NAMES : input_name[N]: {virtual input/source name}
  166. # (Where N = virtual input)
  167. # NOTE: for any used virtual inputs you should have an input_name for that index [N] assigned a name
  168.  
  169.     # NOTE: NOT a true reflection of DM input ordering
  170.  
  171.     input_name[1]: Laptop Rear    # DM-TX-302-C Source
  172.     input_name[2]: Laptop Front
  173.     input_name[3]: Clickshare
  174.     input_name[4]: Room PC
  175.     input_name[5]: Cable TV
  176.     # input_name[6]: {input 6 name}
  177.     # input_name[7]: {input 7 name}
  178.     # input_name[8]: {input 8 name}
  179.     # input_name[9]: {input 9 name}
  180.     # input_name[10]: {input 10 name}
  181.     # input_name[11]: {input 11 name}
  182.     # input_name[12]: {input 12 name}
  183.     # input_name[13]: {input 13 name}
  184.     # input_name[14]: {input 14 name}
  185.     # input_name[15]: {input 15 name}
  186.     # input_name[16]: {input 16 name}
  187.  
  188. # PHYSICAL OUTPUT NAMES : output_name[N]: {physical output/destination name}
  189. # (Where N = physical output)
  190. # NOTE: these define the name of the video switch output endpoint as a destination
  191.  
  192.     output_name[1]: DMPS DM Out 3 (Left Display)
  193.     output_name[2]: DMPS DM Out 4 (Right Display)
  194.     output_name[3]: MD-4x2 Switcher (Output 1)
  195.     output_name[4]: MD-4x2 Switcher (Output 2)
  196.     output_name[5]: DM-TX-4K-202-C (Output)
  197.     output_name[6]: DMPS HDMI Out 2 (VC Content)
  198.     output_name[7]: DMPS AUX 1 (Amplifier)
  199.     output_name[8]: DMPS AUX 2 (SX80)
  200.     # output_name[9]: {output 9 name}
  201.     # output_name[10]: {output 10 name}
  202.     # output_name[11]: {output 11 name}
  203.     # output_name[12]: {output 12 name}
  204.     # output_name[13]: {output 13 name}
  205.     # output_name[14]: {output 14 name}
  206.     # output_name[15]: {output 15 name}
  207.     # output_name[16]: {output 16 name}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement