Select Bluetooth BR/EDR channel index to hop for next frequency
Download Required: To use nextHop, 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.
selects a Bluetooth basic rate/enhanced data rate (BR/EDR) channel index,
X] = nextHop(
channelIndex to hop for next frequency. This selection is based on
the Bluetooth BR/EDR frequency hopping object,
FH, the clock,
Clock, and the SequenceType property of the FH. The function also returns
X, which is required for implementing whitening process in the
physical layer (PHY).
Create a default Bluetooth BR/EDR channel index object for frequency hopping.
fh = bluetoothFrequencyHop
fh = bluetoothFrequencyHop with properties: DeviceAddress: '9E8B33' SequenceType: 'Inquiry' InterlaceOffset: 16 KNudge: 0 KOffset: 24 Counter: 0 UsedChannels: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ... ]
Specify a clock value.
inputClock = '12C'; % 28-bit
Select a Bluetooth BR/EDR channel index to hop for the next frequency.
[channelIndex, X] = nextHop(fh,inputClock)
channelIndex = 41
X = 30
FH— Bluetooth BR/EDR channel index for frequency hopping
Bluetooth BR/EDR channel index for frequency hopping, specified as a
Clock, specified as one of these values:
Character vector — This vector represents the
String scalar — This scalar represents the
Numeric scalar — This scalar represent the
Clock in the
range [0, 228–1]
This argument is a 28-bit value that computes the inputs to the hop
selection kernel. This table shows the dependency of the
argument on the value of the
SequenceType property of the
|Value of |
Indicates native clock of the Master
Indicates native clock of the Slave
Indicates the estimated value of the clock for the Slave
Indicates the value when the access code of the recipient is detected
Indicates the value that triggered a response from the paged device
channelIndex— Channel index
Channel index, returned as an integer in the range [0, 78].
X— Control signal to be used in whitening process
Control signal to be used in whitening process, returned as a nonnegative integer.
 Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed November 22, 2019. https://www.bluetooth.com/.
 Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.1. https://www.bluetooth.com/.