comm.PreambleDetector
Detect preamble in data
Description
The comm.PreambleDetector
System object™ detects a preamble in an input data sequence. A
preamble is a set of symbols or bits used in packet-based communication systems to
indicate the start of a packet. The preamble detector object finds the location
corresponding to the end of the preamble.
To detect a preamble in an input data sequence:
Create the
comm.PreambleDetector
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Syntax
Description
creates a preamble detector object using the default properties.prbdet
= comm.PreambleDetector
creates the object setting the prbdet
= comm.PreambleDetector(prb
,Name=Value
)Preamble
property to
prb
in addition to those properties that you specify
using name-value arguments.
specifies additional properties using name-value arguments using either of the
preceding syntaxes. For example,
prbdet
= comm.PreambleDetector(___,Name=Value
)comm.PreambleDetector(Input="Bit",Detections="First")
creates a preamble detector that expects a binary input signal and selects the
first preamble detected.
Properties
Usage
Description
Input Arguments
Output Arguments
Object Functions
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)
Examples
Algorithms
Bit Inputs
When the input data is composed of bits, the preamble detector uses an exact pattern match.
Symbol Inputs
When the input data is composed of symbols, the preamble detector uses a cross-correlation algorithm. A finite impulse response (FIR) filter, in which the coefficients are specified from the preamble, computes the cross-correlation between the input data and the preamble. When a sequence of input samples matches the preamble, the filter output reaches its peak. The index of the peak corresponds to the end of the preamble sequence in the input data. For more information about the FIR filter algorithm, see Discrete FIR Filter (Simulink).
The cross-correlation values that are greater than or equal to the specified detection threshold are reported as peaks.
If the detection threshold is too low, the algorithm detects false peaks, or, in the extreme case, as many peaks as there are input samples.
If the detection threshold is too high, the algorithm misses detecting peaks, or, in the extreme case, it detects no peaks at all.
Consequently, the selection of the detection threshold is critical.
Extended Capabilities
Version History
Introduced in R2016b