Main Content

setsdruip

Set IP address for USRP radio

Add-On Required: This feature requires the Communications Toolbox Support Package for USRP Radio add-on.

Description

example

info = setsdruip(currentIP,newIP) sets the IP address of a USRP™ N2xx series radio. The current IP address, CurrentIP, is replaced with new IP address, NewIP. The function calls the UHD™ application usrp_burn_mb_eeprom, provided by Ettus Research™, 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.

[info,status] = setsdruip(currentIP,newIP) returns the status of the system command execution as output. A nonzero S value indicates an error.

Examples

collapse all

Set the IP address of a USRP radio at IP address 192.168.30.22 to 192.168.30.20. This example assumes that you have a USRP radio at IP address 192.168.30.22.

I = setsdruip('192.168.30.22','192.168.30.20')
I = 
'192.168.30.20'

Input Arguments

collapse all

Current IP address of a USRP N2xx series radio, specified as dotted-quad character vector or a dotted-quad string scalar.

Data Types: char | string

New IP address to be assigned to the USRP N2xx series radio, specified as dotted-quad character vector or a dotted-quad string scalar. The current IP address of the radio, CurrentIP, is replaced with new IP address, NewIP.

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 the Ethernet port of your host computer with the same subnet address of the radio so that the host computer can communicate with the radio.

Data Types: char | string

Output Arguments

collapse all

New IP address of the USRP radio, returned as a character vector or string scalar.

Data Types: char | string

Status of the system command execution, returned as a nonnegative integer. A nonzero value indicates an error.

Version History

Introduced in R2013a

expand all