Table of Contents
Warning! Use the usrp2_card_burner.py with caution. If you specify the wrong device node, you could overwrite your hard drive. Make sure that --dev= specifies the SD card.
Warning! It is possible to use 3rd party SD cards with the USRP2. However, certain types of SD cards will not interface with the CPLD:
For these reasons, we recommend that you use the SD card that was supplied with the USRP2.
sudo <install-path>/share/uhd/utils/usrp2_card_burner_gui.py -- OR -- cd <install-path>/share/uhd/utils sudo ./usrp2_card_burner.py --dev=/dev/sd<XXX> --fpga=<path_to_fpga_image> sudo ./usrp2_card_burner.py --dev=/dev/sd<XXX> --fw=<path_to_firmware_image>
Use the --list option to get a list of possible raw devices. The list result will filter out disk partitions and devices too large to be the sd card. The list option has been implemented on Linux, Mac OS X, and Windows.
<path_to_python.exe> <install-path>/share/uhd/utils/usrp2_card_burner_gui.py
The USRP-N Series can be reprogrammed over the network to update or change the firmware and FPGA images. When updating images, always burn both the FPGA and firmware images before power cycling. This ensures that when the device reboots, it has a compatible set of images to boot into.
sudo <install-path>/share/uhd/utils/usrp_n2xx_net_burner_gui.py -- OR -- cd <install-path>/share/uhd/utils ./usrp_n2xx_net_burner.py --addr=<ip address> --fw=<path for firmware image> ./usrp_n2xx_net_burner.py --addr=<ip address> --fpga=<path to FPGA image>
<path_to_python.exe> <install-path>/share/uhd/utils/usrp_n2xx_net_burner_gui.py
Its possible to put the device into an unusable state by loading bad images. Fortunately, the USRP-N Series can be booted into a safe (read-only) image. Once booted into the safe image, the user can once again load images onto the device.
The safe-mode button is a pushbutton switch (S2) located inside the enclosure. To boot into the safe image, hold-down the safe-mode button while power-cycling the device. Continue to hold-down the button until the front-panel LEDs blink and remain solid.
When in safe-mode, the USRP-N device will always have the IP address 192.168.10.2
The USRP2 only supports gigabit ethernet, and will not work with a 10/100 Mbps interface. However, a 10/100 Mbps interface can be connected indirectly to a USRP2 through a gigabit ethernet switch.
The USRP2 communicates at the IP/UDP layer over the gigabit ethernet. The default IP address of the USRP2 is 192.168.10.2 You will need to configure the host's ethernet interface with a static IP address to enable communication. An address of 192.168.10.1 and a subnet mask of 255.255.255.0 is recommended.
Note: When using the UHD, if an IP address for the USRP2 is not specified, the software will use UDP broadcast packets to locate the USRP2. On some systems, the firewall will block UDP broadcast packets. It is recommended that you change or disable your firewall settings.
For maximum throughput, one ethernet interface per USRP2 is recommended, although multiple devices may be connected via a gigabit ethernet switch. In any case, each ethernet interface should have its own subnet, and the corresponding USRP2 device should be assigned an address in that subnet. Example:
Configuration for USRP2 device 0:
Configuration for USRP2 device 1:
You may need to change the USRP2's IP address for several reasons:
Method 1: To change the USRP2's IP address you must know the current address of the USRP2, and the network must be setup properly as described above. Run the following commands:
cd <install-path>/share/uhd/utils ./usrp_burn_mb_eeprom --args=<optional device args> --key=ip-addr --val=192.168.10.3
Method 2 (Linux Only): This method assumes that you do not know the IP address of your USRP2. It uses raw ethernet packets to bypass the IP/UDP layer to communicate with the USRP2. Run the following commands:
cd <install-path>/share/uhd/utils sudo ./usrp2_recovery.py --ifc=eth0 --new-ip=192.168.10.3
When setting up a development machine for the first time, you may have various difficulties communicating with the USRP device. The following tips are designed to help narrow-down and diagnose the problem.
When the IP address is not specified, the device discovery sends broadcast UDP packets from each ethernet interface. Many firewalls will block the replies to these broadcast packets. If disabling your system's firewall, or specifying the IP address yeilds a discovered device, then your firewall may be blocking replies to UDP broadcast packets. If this is the case, we recommend that you disable the firewall, or create a rule to allow all incoming packets with UDP source port 49152.
The USRP will reply to icmp echo requests. A successful ping response means that the device has booted properly, and that it is using the expected IP address.
ping 192.168.10.2
Read the serial port to get debug verbose from the embedded microcontroller. The microcontroller prints useful information about IP addresses, MAC addresses, control packets, fast-path settings, and bootloading. Use a standard USB to 3.3v-level serial converter at 230400 baud. Connect GND to the converter ground, and connect TXD to the converter receive. The RXD pin can be left unconnected as this is only a one-way communication.
Use wireshark to monitor packets sent to and received from the device.
In a single-device configuration, the USRP device must have a unique IPv4 address on the host computer. The USRP can be identified through its IPv4 address, resolvable hostname, or by other means. See the application notes on device identification. Use this addressing scheme with the single_usrp interface.
Example device address string representation for a USRP2 with IPv4 address 192.168.10.2
addr=192.168.10.2
In a multi-device configuration, each USRP device must have a unique IPv4 address on the host computer. The device address parameter keys must be suffixed with the device index. Each parameter key should be of the format <key><index>. Use this addressing scheme with the multi_usrp interface.
Example device address string representation for 2 USRP2s with IPv4 addresses 192.168.10.2 and 192.168.20.2
addr0=192.168.10.2, addr1=192.168.20.2
The MIMO cable allows two USRP devices to share reference clocks, time synchronization, and the ethernet interface.
In dual ethernet mode, both devices in the configuration must be attached to the ethernet. One of the devices in the configuration will be configured to provide synchronization. This device will be referred to as the master, and the other device, the slave.
Example device address string representation for 2 USRP2s with IPv4 addresses 192.168.10.2 (master) and 192.168.20.2 (slave)
-- Multi-device example -- addr0=192.168.10.2, mimo_mode0=master, addr1=192.168.20.2, mimo_mode1=slave -- Two single devices example -- addr=192.168.10.2, mimo_mode=master addr=192.168.20.2, mimo_mode=slave
The LEDs on the front panel can be useful in debugging hardware and software issues. The LEDs reveal the following about the state of the device:
Using an external 10MHz reference clock, square wave will offer the best phase noise performance, but sinusoid is acceptable. The reference clock requires the following power level:
Using a PPS signal for timestamp synchronization requires a square wave signal with the following amplitude:
Test the PPS input with the following app:
cd <install-path>/share/uhd/examples ./test_pps_input --args=<args>
USRP-N2XX models can have an optional internal GPSDO. To use the GPSDO with UHD, you must burn an EEPROM setting so that UHD knows that the internal GPSDO was installed.
Installation instructions:
Then run the following commands:
cd <install-path>/share/uhd/utils ./usrp_burn_mb_eeprom --args=<optional device args> --key=gpsdo --val=internal
Removal instructions:
Restore the jumper setting, disconnect the cables, and unscrew the GPSDO unit. Then run the following commands:
cd <install-path>/share/uhd/utils ./usrp_burn_mb_eeprom --args=<optional device args> --key=gpsdo --val=none
The following sensors are available for the USRP2/N-Series motherboards; they can be queried through the API.