Receive data from RTL-SDR device
A comm.SDRRTLReceiver
System object™ supports communication between MATLAB® and an RTL-SDR device, allowing simulation and development of various
software-defined radio (SDR) applications. Although comm.SDRRTLReceiver receives
data from an RTL-SDR device, the object acts as a signal source that outputs a column vector
signal of fixed length.
Connect an RTL-SDR device to a USB port on the host computer, then to receive RTL-SDR device data:
Create the comm.SDRRTLReceiver object and set its
properties.
Call the object as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
creates an RTL-SDR
receiver System object that receives data from the RTL-SDR device. rx = comm.SDRRTLReceiver
creates an RTL-SDR receiver object with the specified property rx = comm.SDRRTLReceiver(Name,Value)Name set
to the specified Value. You can specify additional name-value pair
arguments in any order as (Name1,Value1,...,NameN,ValueN).
comm.SDRRTLReceiver('CenterFrequency',88.9e6) tunes the radio receiver to a center
frequency of 88.9 MHz.
creates an RTL-SDR receiver System object, where rx = comm.SDRRTLReceiver(RadioAddress,Name,Value)RadioAddress is a character vector containing a
nonnegative integer that refers to the USB ID of the RTL-SDR device, and name-value pair
arguments that set additional specified properties.
receives signal and
control data from an RTL-SDR device, as represented by a rxdata = sdrrx()comm.SDRRTLReceiver
System object. Data from the SDR device is expected to be complex 16-bit signed integer
values from –128 to 128. The output data type is specified by OutputDataType.
After the sdrrx object receives
SamplesPerFrames samples, it outputs a column vector of complex
values. See Blocking Behavior.
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj, use
this syntax:
release(obj)
[1] SDR (Software Defined Radio), https://osmocom.org/projects/sdr/wiki/rtl-sdr#Specifications