Main Content

bluetoothTestWaveform

Generate Bluetooth BR/EDR or LE test waveform

Since R2022a

    Description

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

    example

    Examples

    collapse all

    This example enables you 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
         ModulationIndex: 0.5000
             PulseLength: 1
              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 May 22, 2024. https://www.bluetooth.com/.

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

    [3] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.3. Bluetooth Test Suite, RFPHY.TS.p20 edition 2. Revision date July 28, 2024https://www.bluetooth.com/.

    [4] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.3. Bluetooth Test Suite, RF.TS.p33 edition 2. Revision date July 14, 2024https://www.bluetooth.com/.

    Extended Capabilities

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

    Version History

    Introduced in R2022a

    expand all