User Tools

Site Tools


rf_switch

This is an old revision of the document!


Mini Circuits RF Switch and Attenuator

PURPOSE: We bought several RF switches so we can remotely select antenna pol outputs and direct them into a SNAP board one at a time. This will avoid a lot of manual SMA connector inserting/removal, as well as allow us to do a lot of testing remotely.

June 05, 2018 - received the mini circuits attenuator and 8 port RF switch. Two of each.

Note: the software to control these things is at https://github.com/jrseti/ATARFSwitchUtils

System Diagram

This is how I have it hooked up as of June 07, 2018 - JR

Units out of the box

Note: That is a quarter coin in the center for size reference.

Plugged into VM server ngs-work1 (sonata@10.1.49.174, polaris)

Created 2 programs, rfswitch and atten to control these units over USB. See https://github.com/jrseti/ATARFSwitchUtils for a full explanation and the source code.

Setting up Proxmox USB ports

root@nsg-headnode:~# qm monitor 101
qm> info usbhost
  Bus 3, Addr 5, Port 14.1, Speed 1.5 Mb/s
    Class 00: USB device 0557:2419
  Bus 3, Addr 8, Port 12.4.4, Speed 12 Mb/s
    Class 00: USB device 20ce:0023, Mini-Circuits
  Bus 3, Addr 7, Port 12.4.2, Speed 12 Mb/s
    Class 00: USB device 20ce:0022, Mini-Circuits
  Bus 3, Addr 10, Port 12.4.1.3, Speed 12 Mb/s
    Class 00: USB device 20ce:0022, Mini-Circuits
  Bus 3, Addr 9, Port 12.4.1.1, Speed 12 Mb/s
    Class 00: USB device 20ce:0023, Mini-Circuits
    

Note the port numbers (like Port 12.4.4)

In Proxmox, assign the usb ports as shown:

The head node needs to be rebooted to make the USB changes work.

Note that the USB ports need to be assigned by port, not by device vendor and product ID. If you set up the ports assigned to vendor and product ID, you can only have one RF switch on the USB bus recognized at one time. So, use the port numbers like 12.4.1.3.

Installation Picture

The RF switch and attenuator units are installed at the top of the FXA Rack just to the right of the RFCB rack:

More RF Switch Installation

August 16, 2018

Received two 8×1 RF switches and one 16×1 switch.

Before installation of these switches there are two 8×1 RF switches installed. Here is the USB Bus (via lsusb on root@10.1.49.167 (the proxmox node)):

Bus 002 Device 002: ID 8087:8002 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:800a Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0557:2419 ATEN International Co., Ltd 
Bus 003 Device 003: ID 0000:0001  
Bus 003 Device 008: ID 20ce:0023 Minicircuits 
Bus 003 Device 007: ID 20ce:0022 Minicircuits I/O Controller
Bus 003 Device 010: ID 20ce:0022 Minicircuits I/O Controller
Bus 003 Device 009: ID 20ce:0023 Minicircuits 
Bus 003 Device 006: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I will be replacing the 30 foot 2.0USB cable with a 3.0USB 30 foot cable.

Using qm before the changes:

root@nsg-headnode:~# qm monitor 101
Entering Qemu Monitor for VM 101 - type 'help' for help
qm> info usbhost
  Bus 3, Addr 5, Port 14.1, Speed 1.5 Mb/s
    Class 00: USB device 0557:2419
  Bus 3, Addr 8, Port 12.4.4, Speed 12 Mb/s
    Class 00: USB device 20ce:0023, Mini-Circuits
  Bus 3, Addr 7, Port 12.4.2, Speed 12 Mb/s
    Class 00: USB device 20ce:0022, Mini-Circuits
  Bus 3, Addr 10, Port 12.4.1.3, Speed 12 Mb/s
    Class 00: USB device 20ce:0022, Mini-Circuits
  Bus 3, Addr 9, Port 12.4.1.1, Speed 12 Mb/s
    Class 00: USB device 20ce:0023, Mini-Circuits

Using qm AFTER the changes:

Bus 3, Addr 41, Port 11.4, Speed 12 Mb/s

  Class 00: USB device 1130:1620, USB  AUDIO  
Bus 3, Addr 39, Port 12.1.1.4, Speed 12 Mb/s
  Class 00: USB device 20ce:0023, Mini-Circuits
Bus 3, Addr 38, Port 12.1.4, Speed 12 Mb/s
  Class 00: USB device 20ce:0022, Mini-Circuits
Bus 3, Addr 36, Port 12.1.3, Speed 12 Mb/s
  Class 00: USB device 20ce:0022, Mini-Circuits
Bus 3, Addr 35, Port 12.1.2, Speed 12 Mb/s
  Class 00: USB device 20ce:0023, Mini-Circuits
Bus 3, Addr 33, Port 12.3, Speed 12 Mb/s
  Class 00: USB device 20ce:0022, Mini-Circuits
Bus 3, Addr 32, Port 12.2, Speed 12 Mb/s
  Class 00: USB device 20ce:0022, Mini-Circuits
Bus 3, Addr 5, Port 14.1, Speed 1.5 Mb/s
  Class 00: USB device 0557:2419
rf_switch.1534460188.txt.gz · Last modified: 2023/10/28 18:36 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki