Main Content

findsdru

Status of USRP radios connected to host computer

Description

example

A = findsdru returns a structure that contains the model number, IP address, serial number, and status of each USRP™ radio that is connected to the host computer.

A = findsdru(IPAddress) returns information for only the USRP radio with the specified IP address.

A = findsdru(serialNum) returns information for only the USRP radio with the specified serial number.

Examples

collapse all

Before running this example, verify that your USRP radio is configured for host-radio communication by following the steps in Guided USRP Radio Support Package Hardware Setup.

Get the model number, IP address, serial number, and status of each USRP radio that is connected to the host computer.

A = findsdru
Checking radio connections...
A = struct with fields:
     Platform: 'B210'
    IPAddress: ''
    SerialNum: '31B92DD'
       Status: 'Success'

Input Arguments

collapse all

IP address of the USRP radio that is connected to the host computer, specified as a dotted-quad character vector or dotted-quad string scalar.

Data Types: char | string

Serial number of the USRP radio that is connected to the host computer, specified as a character vector or string scalar.

Data Types: char | string

Output Arguments

collapse all

Information about connected USRP devices, returned as a structure containing these fields.

FieldsDescription
PlatformModel number of the USRP device
IPAddressIP address of the USRP device
SerialNumSerial number of the USRP device
StatusStatus information of the USRP device

The Status field of this structure displays one of the messages described in this table.

Status ValueDefinition
SuccessUSRP device is available.
No devices foundNo USRP devices found.
Not compatibleDevice with incompatible firmware. To communicate with this device, you must update the firmware to the version returned by the function getSDRuDriverVersion. For more information on firmware, see USRP Radio Firmware Update.
Not responding

Device is not responding because of any of these reasons.

  • The device is not attached to the host computer. If you are having an Ethernet connectivity problem, see Check Ethernet Configuration.

  • No device with the specified IP address exists.

  • The subnet address of the host computer does not match the subnet address of the device. The subnet address is the third field of the IP address. Verify that the subnet value of the host and radio are the same. For example, your NIC has an IP address of 192.168.10.1, and the IP address of the USRP radio is 192.168.20.2. The IP addresses differ in the third octet. For more information on subnet addresses, see Check Subnet Values on Host and Radio.

    Note

    For X3xx series radios, you will see this additional warning message that directs you to the hardware setup.

    Warning: Device at '192.168.60.2' is not responding because subnet value of host network interface does not match with device subnet value. To configure host network interface click Here.

  • The specified serial number is invalid.

BusyDevice is in use. The device is already owned by a block, a block dialog, or a System object™.
Unknown errorUnknown problem.
Introduced in R2012b