Pages

Monday 2 December 2013

Setup or change USRP N210 IP address in Ubuntu

You may need to change the USRP2's IP address for several reasons:
  • to satisfy your particular network configuration 
  • to use multiple USRP2s on the same host computer
  • to set a known IP address into USRP2 (in case you forgot)
Connect network cable to port physically. Then, setup the host IP to enable the communicate with USRP N210 whose default IP is 192.168.10.2

To change the USRP2's IP address, you must navigate to the following folder:
cd /usr/local/lib/uhd/utils

Then run the following command by providing the necessary parameters:
sudo ./usrp2_recovery.py --ifc=<Interface> --new-ip=<New IP address>

Note: The <interface> is usually something like eth0. You can discover the names of the network interfaces in your computer by running ifconfig without any parameters. <New IP address> is the IP address you want to assign to the USRP2 device.

Then, turn off power switch and reboot the USRP2 device. Now type the following command in the terminal to see the changes
sudo uhd_find_devices

or you can ping to the USRP2 IP address. 

ping <New USRP2 IP Address> 

You should be able to see the response of USRP N210, otherwise turn off your firewall as 'sudo ufw disable' and check the network connection.

Good Luck..:)

4 comments: