Main Content

bluetoothTestWaveform

Generate Bluetooth BR/EDR or LE test waveform

    Description

    example

    testWaveform = bluetoothTestWaveform(cfgTestWaveform) generates the Bluetooth® basic rate/enhanced data rate (BR/EDR) or low energy (LE) test waveform.

    Examples

    collapse all

    This example shows you how to generate a Bluetooth LE or BR/EDR test waveform for these physical layer (PHY) transmission modes.

    • Bluetooth LE: LE1M, LE2M, LE125K, LE500K

    • Bluetooth BR/EDR: BR, EDR2M, and EDR3M

    Generate two Bluetooth test waveforms: one with the PHY transmission mode as LE1M and one with PHY transmission mode as BR.

    Generate Bluetooth Test Waveform with LE1M Mode

    Create a default Bluetooth BR/EDR and LE test waveform configuration object.

    cfgLETestWaveform = bluetoothTestWaveformConfig
    cfgLETestWaveform = 
      bluetoothTestWaveformConfig with properties:
    
                    Mode: 'LE1M'
           PayloadLength: 255
              PacketType: 'Disabled'
             PayloadType: 0
        SamplesPerSymbol: 8
    
    

    Generate a Bluetooth test waveform with the LE1M PHY transmission mode.

    txLEWaveform = bluetoothTestWaveform(cfgLETestWaveform);

    Generate Bluetooth Test Waveform with BR Mode

    Create a default Bluetooth BR/EDR and LE test waveform configuration object.

    cfgBRTestWaveform = bluetoothTestWaveformConfig;

    Set the PHY transmission mode to BR.

    cfgBRTestWaveform.Mode = "BR"
    cfgBRTestWaveform = 
      bluetoothTestWaveformConfig with properties:
    
                      Mode: 'BR'
              WhitenStatus: 'Off'
           ModulationIndex: 0.3200
                PacketType: 'DH1'
               PayloadType: 0
          SamplesPerSymbol: 8
    
       Read-only properties:
        FixedPayloadLength: 27
    
    

    Generate a Bluetooth test waveform with the BR PHY transmission mode.

    txBRWaveform = bluetoothTestWaveform(cfgBRTestWaveform);

    Input Arguments

    collapse all

    Bluetooth BR/EDR or LE test waveform configuration, specified as a bluetoothTestWaveformConfig object.

    Output Arguments

    collapse all

    Bluetooth BR/EDR or LE test waveform, returned as a complex-valued column vector of length Ns, where Ns is the number of time-domain samples.

    Data Types: double

    References

    [1] Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed November 22, 2021. https://www.bluetooth.com/.

    [2] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.3. https://www.bluetooth.com/.

    Extended Capabilities

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2022a