comm.SDREpiqBitsharkReceiver class

Package: comm

Receive data from Epiq Solution's Bitshark RF board

Description

The SDREpiqBitsharkReceiver System object™ receives data from a Xilinx® FPGA-based radio, allowing simulation and development for various software-defined radio applications. The SDREpiqBitsharkReceiver object enables communication with a FPGA board on the same Ethernet subnetwork.

The SDREpiqBitsharkReceiver System object is a signal sink that receives data from an FPGA board and outputs a column vector signal of fixed length. The first call to this object may contain transient values which result in packets containing undefined data.

The following diagram illustrates how MATLAB®, the SDREpiqBitsharkReceiver System object, and Xilinx FPGA hardware interface.

Data Path

The following diagram illustrates the data path for radio signal reception (when the decimation filter, IF tuner, and DC blocking filter are all specified in the object properties):

Supported Data Types

PortSupported Data Types

Output

The output port supports these complex data types only:

  • Double-precision floating point

  • Single-precision floating point

  • 16-bit signed integers

When you select a double or single data type, the complex values are scaled to the range of [-1,1]. When you select int16, the complex values are the raw 16-bit I and Q samples from the board.

Construction

H = comm.SDREpiqBitsharkReceiver creates an SDR receiver System object, H, that receives data from an FPGA development motherboard with an Epiq Solution's Bitshark™ FMC-1Rx daughterboard installed. The System object enables communication with an SDR board on the same gigabit Ethernet subnetwork as the host.

H = comm.SDREpiqBitsharkReceiver(Name,Value) creates an SDR receiver System object, H, with the specified property Name set to the specified Value. You can specify additional name-value pair arguments in any order as (Name1,Value1,...,NameN,ValueN).

An SDREpiqBitsharkReceiver System object connects to a device when you call the step method, and will stay connected until you call the release method.

Properties

IPAddress

IP address of the SDR device

Specify the logical network location of the SDR device as a string. The default is 192.168.0.2 for Epiq radios.

See also Check Radio Connection.

CenterFrequencySource

Source of the center frequency

Specify the source of the center frequency as one of Property | Input port. The default is Property. Set CenterFrequencySource to Input port to specify the center frequency value using an input to the step method. Set CenterFrequencySource to Property to specify the center frequency value using the CenterFrequency property.

CenterFrequency

Desired center frequency in Hz

Specify the desired center frequency as a double-precision, nonnegative, finite scalar. This property applies when you set the CenterFrequencySource to Property.

The default is 2.4GHz. The valid range of values for this property is 300MHz to 4GHz.

ActualCenterFrequency

Actual center frequency in Hz

Report the actual center frequency of the daughterboard. Desired and actual center frequency can differ slightly due to quantization. This property is read-only.

IntermediateFrequencySource

Source of RF intermediate frequency

Specify the source of the intermediate frequency as Property or Input port. The default is Property. Set IntermediateFrequencySource to Input port to specify the intermediate frequency value using an input to the step method. Set IntermediateFrequencySource to Property to specify the intermediate frequency value using the IntermediateFrequency property.

IntermediateFrequency

Desired intermediate frequency in Hz

The intermediate frequency (IF) tuner allows you to account for the error in tuning between target center frequency and actual center frequency and avoid unwanted interference by shifting it out of the pass band of interest. Specify the desired intermediate frequency as a double-precision, finite scalar. The default value is 0 Hz. The valid range of values for this parameter is to , where is the analog-digital converter (ADC) rate.

See also Set Intermediate Frequency Tuning.

ActualIntermediateFrequency

Actual intermediate frequency in Hz

Reports the actual intermediate frequency. Desired and actual intermediate frequency can be slightly different due to quantization. The value is NaN when the actual value is unknown. Use the synchronize method to update the actual value. This property is read-only.

IFBandwidthSource

Source of bandwidth for IF filter

IFBandwidth

Desired IF bandwidth in Hz

ActualIFBandwidth

Actual IF bandwidth in Hz

GainSource

Source of the gain

Specify the source of the gain as one of Property | Input port. The default is Property. Set GainSource to Input port to specify the gain value using an input to the step method. Set GainSource to Property to specify the gain value using the Gain property.

Gain

Desired RF front-end gain in dB

ActualGain

Actual RF front-end gain in dB

Report the actual gain of the daughterboard. Desired and actual gain can differ slightly due to quantization. This property is read-only.

ADCRate

Desired ADC sample rate. The default value is 100MHz. The valid range for this board is 5–105MHz.

ActualADCRate

Actual ADC sample rate in samples per second

DecimationFactor

Desired decimation factor

Specify the desired decimation factor as a double precision nonnegative scalar. The default is 512. The baseband rate is ADCRate/DecimationFactor.

See also Apply Decimation Factors.

ActualDecimationFactor

Actual decimation factor

Reports the actual decimation factor of the daughterboard. Desired and actual decimation factor can differ slightly due to quantization. The value is NaN when the actual value is unknown. Use the synchronize method to update the actual value. This property is read-only.

LostSamplesOutputPort

Output flag to indicate dropped samples

Set this property to true so that the step method outputs the number of lost samples during host/hardware data transfers. Non-zero values indicate that the host is unable to keep up with the radio data rates. The default is false.

This port is a useful diagnostic tool to determine real time operation of the System object. If your model is not running in real time, you can increase the decimation factor to approach or achieve real-time performance.

See also Detect Underruns and Overruns.

OutputDataType

Data type of output

Specify the data type of the output signal as double, single, or int16. The default is int16, with a range of [-32768, 32767]. This block supports the following complex output data types:

  • Double-precision floating point

  • Single-precision floating point

  • 16-bit signed integers

When you set OutputDataType to either Double-precision floating point or Single-precision floating point, the range is [-1, 1].

FrameLength

Frame length

Specify the frame length of the output signal that the object generates as a positive, scalar integer. The default value is 3660. This value optimally utilizes the underlying Ethernet packets, which have a size of 1500 8-bit bytes.

See also Set Frame Length.

EnableBurstMode

Ensure a set of frames without overrun

When set to true, this property produces a set of contiguous frames without an overrun or underrun to the radio. This setting can help simulate models that cannot run in real time. When enabled, specify the desired amount of contiguous data using the NumFramesInBurst property. The default value is false.

See also Burst-Mode Buffering

NumFramesInBurst

Number of frames in contiguous burst

This property is valid when EnableBurstMode property is set to true. The default number of frames in a burst is 100.

BypassUserLogic

Bypass user logic from target workflow

When you enable this property, the FPGA data path bypasses the algorithm generated and programmed during the SDR workflow. This bypass can help with debugging system bringup. The default value is false, or not enabled.

BypassDCBlockingFilter

Bypass the DC bias removal filter

When true, the DC blocking filter to automatically reduce a DC bias is bypassed. Enable this when the filter is also blocking some signal and you need to use a different DC bias compensation scheme. The default is false, which means to include the automatic DC blocking filter.

Desired vs. Actual System Object Property Values

You can set the desired values in the receiver System object for the following radio properties. However, due to quantization or range issues, the actual values can differ from your desired values. The actual values are stored in the properties that begin with Actual (see table).

Parameter to SetActual Value
CenterFrequencyActualCenterFrequency
IntermediateFrequencyActualIntermediateFrequency
IFBandwidthActualIFBandwidth
GainActualGain
ADCRateActualADCRate
DecimationFactorActualDecimationFactor

Methods

disconnectAllow other host software to communicate with SDR board
infoObtain SDR board information
isLockedLocked status (logical)
releaseAllow property value and input characteristics changes
stepReceive data from SDR board
synchronizeConfigure SDR board

Examples

Configure an SDR board with an IP address of 192.168.0.2 to receive at 2.5 GHz with a codec rate of 100MHz and a baseband rate of 1MHz. Save the data using a signal logger System object.

hSDR = comm.SDREpiqBitsharkReceiver( ...
                'IPAddress',        '192.168.0.2', ...
                'CenterFrequency',  2.5e9, ...
                'ADCRate',          100e6, ...
                'DecimationFactor', 100);
 
    hLogger = dsp.SignalSink;
    for counter = 1:20
      [data, dataLength] = step(hSDR);
      if (dataLength)
        step(hLogger, data);
      end
    end

Related Links

Was this topic helpful?