Main Content

findsdru

Status of USRP radios connected to host computer

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

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.

A = findsdru(___,'StatusOnly'=logical) specifies the option to return the detailed status of the radio.

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.

Data Types: char

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

Data Types: char

Option to enable or disable the ability of findsdru function to find the connected radios and get their availability status faster, specified as true or false. Specify this argument as true to get the radio status faster. Specify this argument as false to get the detailed status regarding firmware compatibility, no response from the device, and other UHD errors. For more information about the execution times, see Reduced execution time for findsdru

Example: 'StatusOnly'=false

Data Types: logical

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.

  • 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.

Version History

Introduced in R2012b

expand all