BLE channel index for connection events
Download Required: To use bleChannelSelection, first download Communications Toolbox™ Library for the Bluetooth® Protocol. For more information, see Get and Manage Add-Ons. Alternatively, see Communications Toolbox Library for the Bluetooth Protocol File Exchange.
The bleChannelSelection
System object™ selects a Bluetooth low energy (BLE) channel index based on the selected
algorithm. For more information, see Algorithm
in property.
To select a BLE channel index:
Create the bleChannelSelection
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?.
creates a
csa
= bleChannelSelectionblechannelselection
System object, csa
, to select a BLE channel index for connection
events or periodic advertising events.
sets
properties using one or more name-value pairs. For example,
csa
= bleChannelSelection(Name
,Value
)bleChannelSelection('Algorithm','2')
configures the System object, csa
, to select a BLE channel index based on
'Algorithm #2'
. Enclose each property name in quotes.
selects a channel index
based on the algorithm specified by the channelIndex
= csa()Algorithm
property, the list
of used data channels specified by the UsedChannels
property, and
other applicable properties dependent on the selected algorithm. The returned channel
index, channelIndex
, is of data type double.
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] Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed November 22, 2019. https://www.bluetooth.com/.
[2] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.1. https://www.bluetooth.com/.