setsdruip

Set USRP® radio IP address

Syntax

I=setsdruip(CURRIP, NEWIP)
[I,S]=setsdruip(CURRIP,NEWIP)

Description

I=setsdruip(CURRIP, NEWIP) sets the IP address of the USRP®[1] device at the IP address CURRIP. The current IP address is replaced with new IP address, NEWIP. Both CURRIP and NEWIP are dotted quad character vectors, for example, "192.168.10.2". The function setsdruip works by calling the UHD application usrp_burn_mb_eeprom, provided by Ettus ResearchTM, as a system command and returns the command output in I. You must power-cycle the radio for the IP address change to take effect.

[I,S]=setsdruip(CURRIP,NEWIP) returns the status of the system command execution in S. A non-zeros S value indicates an error.

Note

If you change the subnet address of the radio (the subnet address is the third number in the IP character vector), you must reconfigure your host computer's Ethernet port to use the same subnet to be able to communicate with the radio.

Examples

Set the IP address of the USRP® radio at IP address 192.168.30.22 to 192.168.30.20.

setsdruip('192.168.30.22', '192.168.30.20');

[1] USRP, USRP2, UHD, and Ettus Research are trademarks of National Instruments Corp.