Main Content

setsdruip

Set IP address forUSRPN2xx or X3xx series radio

Description

example

info= setsdruip(currentIP,newIP)sets the IP address of a USRP™ N2xx or X3xx series radio. The current IP address,CurrentIP, is replaced with new IP address,NewIP. The function calls the UHD™ applicationusrp_burn_mb_eeprom, provided by Ettus Research™, as a system command and returns the command output inI. You must power-cycle the radio for the IP address change to take effect. This function does not support N3xx series radios.

Note

For X3xx radios, thesetsdruipfunction supports small form-factor pluggable port 0 (SFP+ port 0) only.

[info,status] = setsdruip(currentIP,newIP)returns the status of the system command execution as output. A nonzeroSvalue 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 or X3xx 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 or X3xx 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.

版本历史

Introduced in R2013a