==== SB2 ====
[[TOC(Hardware, Hardware/bDomains, Hardware/bDomains/cSandboxes*, depth=6)]]
Each node in Sandbox 2 (SB2) has a USRP X310 (with 2 UBX-160 daughtercards) directly connected to it via a 10G ethernet link. This link shows up as {{{eth2}}} on the nodes.
Sandbox 2 also has a pair of 60 GHz 16+16 IEEE802.11ad beamforming transceivers available for optional connection to the X310 frontends.
===== RF Connections =====
The RF connections of the X310's in this sandbox can be configured in one of two topologies.
The first topology has both X310's interconnected via coax cables as follows with 30dB of attenuation between each TX/RX & RX2 link for protection. This setup is designed to facilitate FDD dependent experiments.
||=Configuration 1=||
|| [[Image(config1.png)]] ||
[[BR]]
The second topology is for use of the 60 GHz transceivers. In the currently available configuration, the X310 of node1-1 can acts as a transmit-only radio, while the X310 of node1-2 acts as a receive-only radio.
||=Configuration 2=||
|| [[Image(config2.png)]] ||
[[BR]]
===== Selecting RF topology configuration =====
Use the instrumentation service to check the current configuration as well as make changes to it.
[[CollapsibleStart(To get the current configuration:)]]
Usage:
{{{
This service outputs status information about SB2.
}}}
Example:
{{{curl "internal2dmz.orbit-lab.org:5054/instr/statusSB2"}}}
Response:
{{{
}}}
[[CollapsibleEnd]]
[[CollapsibleStart(To switch the configuration:)]]
Usage:
{{{
This service configures how devices are connected in Sandbox 2.
Device (1 => X310 to X310, 2 => X310 to 60GHz module
}}}
Example (switch to normal X310 <=> X310 connection):
{{{curl "internal2dmz.orbit-lab.org:5054/instr/selDeviceSB2?device=1"}}}
Response:
{{{
}}}
[[CollapsibleEnd]]
[[BR]]
===== Networking Setup (eth2) =====
Each X310 is connected to its respective node through a 10G interface adapter installed in Port 1 of the USRP. In this configuration, the X310 will have a default IP address of 192.168.40.2 (see [http://files.ettus.com/manual/page_usrp_x3x0.html#x3x0_setup_network_host_interface X310 User Manual]). To setup network connectivity, make sure eth2 is configured with an address in the 192.168.40.0/24 subnet .
[[BR]]
===== Using images based on baselines before June 12, 2017 =====
Images built using baselines prior to June 12, 2017 may not work correctly. After imaging, the node may not be accessible via SSH or the ethernet interface order will be wrong due to the add-on NIC (for X310 connectivity) changing the order of the ethernet interfaces (making the USRP inaccessible). To repair your image, connect to the node (if SSH isn't working, connect via the [wiki:Hardware/jCM/dCM3/dUsage#SerialConsoleoverTelnettunnel CM serial console]) and run the following commands.
{{{
if ! grep -i "blacklist mlx4_core" /etc/modprobe.d/blacklist.conf; then echo "blacklist mlx4_core" >> /etc/modprobe.d/blacklist.conf; fi
if ! grep -i "mlx4_core" /etc/modules; then echo "mlx4_core" >> /etc/modules; fi
depmod -a
update-initramfs -u
reboot
}}}