Main Content

Check Radio Connection

Block Connection to RTL-SDR

To verify that an RTL-SDR Receiver block is connected to RTL-SDR hardware, follow these steps.

  1. Open the model that contains the RTL-SDR Receiver block for which you want to check the connection.

  2. Open the block mask by double-clicking the block. If the block is connected to the RTL-SDR hardware, click Info to return this information from the radio. Values going to the RTL-SDR radio are often quantized by the hardware. These values are the actual RTL-SDR device settings.

    • RadioName

    • RadioAddress

    • RadioIsOpen

    • TunerName

    • Manufacturer

    • Product

    • SerialNumber

    • GainValues

    • RTLCrystalFrequency

    • TunerCrystalFrequency

    • SamplingMode

    • OffsetTuning

    • CenterFrequency

    • SampleRate

    • TunerGain

    • FrequencyCorrection

    If the block is not connected to the RTL-SDR hardware, click Info to return this message in the RadioName field: 'Cannot find radio'.

Note

A block can connect to only one receiver at a time on the same radio address.

System Object Connection to RTL-SDR

To verify that an RTL-SDR receiver System object™ is connected to RTL-SDR hardware, follow these steps.

  1. Identify the radio address that is associated with the comm.SDRRTLReceiver System object for which you want to check the connection. For this example, create a default RTL-SDR receiver System object. The radio address for this System object is 0.

    radio = comm.SDRRTLReceiver
    radio = 
     comm.SDRRTLReceiver with properties:
     
               RadioAddress: '0'
            CenterFrequency: 102500000
             EnableTunerAGC: true
                 SampleRate: 250000
             OutputDataType: 'int16'
            SamplesPerFrame: 1024
        FrequencyCorrection: 0
            EnableBurstMode: false
  2. Report the radio information of all RTL-SDR hardware that is connected to the host computer by using the sdrinfo function, specifying the radio address associated with the System object as the function input..

    hwinfo = sdrinfo('0')

    If a radio is connected to the specified radio address, then the RTL-SDR hardware returns this information.

    hwinfo = 
                    RadioName: 'NESDR'
                 RadioAddress: '0'
                  RadioIsOpen: 0
                    TunerName: 'E4000'
                 Manufacturer: 'NooElec'
                      Product: 'NESDR SMArTee X'
                   GainValues: [14×1 double]
          RTLCrystalFrequency: 28800000
        TunerCrystalFrequency: 28800000
                 SamplingMode: 'Quadrature'
                 OffsetTuning: 'Disabled'

Note

A System object can connect to only one subdevice (receiver) at a time on the same radio address. When you call the info object function, the RTL-SDR radio System object connects to a subdevice and stays connected until you call the release object function.

See Also

Blocks

Objects

Functions