Main Content

Configure BLE Channel and Pass Waveform

Communications Toolbox™ Library for the Bluetooth® Protocol features enable you to create and configure a Bluetooth low energy (BLE) channel.

Configure BLE Channel and Pass Waveform

Configure a BLE channel by using the helperBLEChannel object. This helper object enables you to configure the applicable properties of the BLE channel.

Create a BLE channel model object with default properties.

bleChannel = helperBLEChannel
bleChannel = 
  helperBLEChannel with properties:

            ChannelIndex: 37
                 RxRange: 10
    RangePropagationLoss: 1
               FSPLModel: 1
            NodePosition: [0 0 0]

Set the (x, y, z) position coordinates of the nodes. Specify the receiving range (in meters) of the nodes.

bleChannel.RxRange = 15;
bleChannel.NodePosition = [5 0 0];

Create an input message column vector of length 2056 containing random binary values.

message = randi([0 1],2056,1);
symbolRate = 1e6;

Set the BLE waveform frequency (in MHz). Specify the position coordinates of the transmitter.

waveformFrequency = 2402;
transmitterPos = [18 0 0];

Generate the BLE waveform.

txWaveform = bleWaveformGenerator(message);

Pass the generated BLE waveform through the BLE channel.

wirelessWaveform = run(bleChannel,txWaveform,waveformFrequency,transmitterPos);


[1] Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed September 17, 2020.

[2] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.2.

Related Topics