Archive | USRP RSS feed for this section

Setting up Ettus USRP X300

18 Dec

https://kb.ettus.com/USRP_Host_Performance_Tuning_Tips_and_Tricks
https://files.ettus.com/manual/page_usrp_x3x0.html
https://files.ettus.com/manual/page_transport.html

Increase Socket Buffers
sudo vi /etc/sysctl.conf
# Increase buffers for USRP
net.core.wmem_max=100000000
net.core.rmem_max=100000000
net.core.wmem_default=100000000
net.core.rmem_default=100000000

Realtime Priority
sudo vi /etc/security/limits.conf
# Add for USRP realtime priority
myusername - rtprio 99

Will require re-login

Adjust Ethernet MTU
9000

Note intervening switches need jumbo frames enabled.

Set CPU Performance
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Change GRUB
sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier"
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Updating Firmware and FPGA
uhd_usrp_probe --args "addr=192.168.1.13"
sudo /usr/local/lib64/uhd/utils/uhd_images_downloader.py
/usr/local/bin/uhd_image_loader --args="type=x300,addr=192.168.1.13"

Cycle power on the USRP

Benchmark
cd /usr/local/lib64/uhd/examples
./benchmark_rate --rx_rate 100E6 --tx_rate 100E6 --args "addr=192.168.1.13"

Advertisement

Setting up the Ettus USRP E310

29 Jun

Add udev Rules for E310 Serial Console
sudo vi /etc/udev/rules.d/99-usrp-e310.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE:="0666"
sudo udevadm control --reload-rules

Serial Console Login
Plug in power and wait a few seconds for E310 to boot, then plug in microUSB.
dmesg to figure out the assigned serial port (i.e. /dev/ttyUSB4)
screen /dev/ttyUSB4 115200
Login as root

Setting Static IP
vi /etc/network/interfaces
# Wired or wireless interfaces
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.14
netmask 255.255.255.0
gateway 192.168.1.1
iface eth1 inet dhcp


/etc/init.d/networking stop

Setting up the Ettus USRP B200

10 Jun

Add udev Rules
sudo vi /etc/udev/rules.d/99-usrp-b200.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0020", MODE:="0666"
sudo udevadm control --reload-rules

Realtime Priority
sudo vi /etc/security/limits.conf
# Add for USRP realtime priority
myusername – rtprio 99

Will require re-login

Update Firmware
sudo /usr/local/lib64/uhd/utils/uhd_images_downloader.py

Probe
uhd_find_devices --args="type=b200"

Benchmark
cd /usr/local/lib64/uhd/examples
./benchmark_rate --rx_rate 60E6 --args "type=b200, master_clock_rate=60E6"

USRP N210 and HDSDR Setup

10 Feb

Notes on setup of HDSDR software with the USRP N210 via the ExtIO interface

Instructions here

Click to access application_note_usrp_and_hdsdr_spectrum_monitoring.pdf

Configuration as of 7/23/2013
Window 7 64-bit
Ettus USRP N210 Rev 4
UHD 003.005.003 for Windows
UHD 003.005.000 for USRP
HDSDR 2.63
ExtIO USRP 1.5.1

Install UHD driver for Windows
Install uhd_003.005.003-release_Win64.exe from:
http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Windows
This will place utility file in C:\Program Files (x86)\UHD\share\uhd\utils\

Install ExtIO compatible UHD for USRP
As of 7/23/2013 must use UHD 003.005.000 from:
http://files.ettus.com/binaries/master_images

Unzip and copy usrp_n210_fw.bin and usrp_n210_r4_fpga.bin to C:\Program Files (x86)\UHD\share\uhd\utils\

Open up a shell and cd to C:\Program Files (x86)\UHD\share\uhd\utils\

Run the following:
usrp_n2xx_simple_net_burner --addr 192.168.1.13 --fw usrp_n210_fw.bin --fpga usrp_n210_r4_fpga.bin

Install HDSDR
http://www.hdsdr.de/download/HDSDR_install.exe

Install ExtIO
http://spench.net/drupal/files/ExtIO_USRP+FCD+BorIP_Setup.zip

Update USRP firmware before returning to GNU Radio
Running usrp_n2xx_simple_net_burner.exe will download and update USRP with the the latest firmware

Windows shortcut
Install USRP ExtIO Firmware
"C:\Program Files (x86)\UHD\share\uhd\utils\usrp_n2xx_simple_net_burner.exe" --addr "192.168.1.13" --fw "usrp_n210_fw.bin" --fpga "usrp_n210_r4_fpga.bin"

Windows shortcut
Restore USRP Latest Firmware
"C:\Program Files (x86)\UHD\share\uhd\utils\usrp_n2xx_simple_net_burner.exe" --addr "192.168.1.13"

Setting up the Ettus USRP N210

8 Feb

https://files.ettus.com/manual/page_usrp2.html

Changing the IP Address
The USRP N210 comes with a default IP address of 192.168.10.2 which may be changed (e.g. 192.168.1.11):
./usrp_burn_mb_eeprom --args="addr=192.168.10.2" --values="ip-addr=192.168.1.11"

Increase Socket BUffers
sudo vi /etc/sysctl.conf
# Increase buffers for USRP
net.core.wmem_max=50000000
net.core.rmem_max=50000000
net.core.wmem_default=50000000
net.core.rmem_default=50000000

Realtime Priority
sudo vi /etc/security/limits.conf
# Add for USRP realtime priority
myusername - rtprio 99

Will require re-login

Updating N210 Firmware and FPGA
sudo /usr/local/lib64/uhd/utils/uhd_images_downloader.py
cd /usr/local/lib64/uhd/utils
uhd_image_loader --args="type=usrp2,addr=192.168.1.11"

Cycle power on the USRP

Probe
uhd_usrp_probe --args "addr=192.168.1.11"

Benchmark
cd /usr/local/lib64/uhd/examples
./benchmark_rate --rx_rate 25E6 --tx_rate 25E6 --args "addr=192.168.1.11"