Professional Documents
Culture Documents
Note:
Please find the most up-to-date document on our homepage
http://www.rohde-schwarz.com/appnote/1C108.
This document is complemented by software. The software may be
updated even if the version of the document remains unchanged
Roland Roed
11.2016 – 1C108_0e
Application Note
Table of Contents
Table of Contents
1 Introduction ......................................................................................... 3
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 2
Introduction
1 Introduction
The R&S CMW 1 performs as a master in Basic Rate / Enhanced Data Rate (BR/EDR)
test mode using a predetermined clock and frequency pattern. The Equipment under
Test (EUT) acting as slave device(s) is synchronized to the CMW’s clock and
frequency pattern. The quality of the physical radio channel used by this piconet is
commonly assessed by the following parameters via common RX quality
measurements:
ı Received Signal Strength Indication (RSSI)
ı Packet or Bit Error Rate (PER / BER)
ı Signal to Noise Ratio (SNR).
The metrics, which are used to determine on air interference, are not exposed in the
Bluetooth Signaling firmware application (FWA) on the CMW. Details can be found in
section 2.1.3.
A full feature set required for AFH testing is available at the CMW, when remote
operated. In future AFH testing will be extended to the Bluetooth Signaling application
user interface on the CMW.
The AFH test capability is not supported for Bluetooth Low Energy (LE) testing, since
the CMW performs in Direct Test Mode, which is a non-signaling mode.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 3
Basic Ideas
2 Basic Ideas
2.1 Adaptive Frequency Hopping
Frequency Hopping Spread Spectrum (FHSS) was first introduced by the Bluetooth
(BT) Special Interest Group (SIG) in the Core Specification Version 1.2. The basic idea
is, that the channel frequency, which is shared by each member of a piconet, is
periodically changed. The frequency of a BT radio is changed by frequency hops
between channels in the unlicensed ISM band at 2.4 GHz. The hopping process is
performed in a pseudo-random manner in order to reduce interference effects and to
meet local regulatory requirements.
The channel set comprises 79 channels, each of 1 MHz bandwidth, where the BT
device is able to hop onto. The relation between the center frequency fc of the channel
and the channel number k can be summarized to:
fc = 2402 MHz + k ∙ 1 MHz ; k = 0, 1, .., 78
Frequency Hopping is used in the BT inquiry and page scan substates with 32
channels available to hop onto at a maximum hop rate of 3200 Hz. It is also used in the
BT connection state, thereby restricted to a maximum hop rate of 1600 Hz with the
ability to access all the 79 channels. The minimum number Nmin of available channels
within the piconet is 20.
Adaptive Frequency Hopping (AFH) is available for the BT connection state only. The
term Adaptive is used to indicate, that during the hopping process channel conditions
are permanently monitored to identify occupied or low quality channels, which are
stated bad channels. The bad channels are excluded from the available channels
within the hopping pattern until they become good channels again. In order to
guarantee, that the number of available channels N is larger or equal Nmin, bad
channels can be also present within the currently used hopping pattern.
Fig. 2-1: FHSS example in the ISM band & bad channels due to a coexisting WLAN signal
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 4
Basic Ideas
Time Slots
BT transmission channels are divided into time slots, each slot being 625 µs in length
and numbered according to the most significant 27 bits of the BT clock. The time slot
number, denoted as k, therefore ranges from 0 to 227-1. BT packet transmission can
extend up to five time slots on the CMW, which is the maximum specified BT standard
packet transmission.
Fig. 2-3: TDD scheme: Multi-slot packet transmission and frequency hops f(k)
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 5
Basic Ideas
Hopping Pattern
A Bluetooth device will 'hop' between the 79 frequency channels in a predetermined
sequence at a hop frequency, which is directly linked to the number of time slots used
for data transmission. Bluetooth transmission channels are divided into time slots, each
slot being 625 µs in duration. Packets can be either 1, 3, or 5 slots in duration, i.e. one
frequency hop per packet, independent from the number of slots.
The pseudo-random hop generator will repeat itself after a certain number of hops. The
hop period during normal piconet communications is 227 hops long. Accordingly the
hopping pattern will repeat itself after about 23.3 hours, taking into account that the
hop rate is 1600 hops per second. The hop period is long in order to avoid accidental
hop synchronization between two different piconets within mutual range.
The pre-determined hop sequence is pseudo-random in nature. The master device
provides the hop sequence to all slave devices within the piconet during the paging
process.
Adaptive hopping
The term 'Adaptive' comes from the ability of the master and all slaves within a piconet
to be able to monitor channel conditions and avoid bad channels, if necessary. The
channel quality measurements are made by all devices within the piconet, since
interference depends on the device location and transmitted power.
Common metrics for making the judgement on RX channel quality are as follows:
ı Received Signal Strength Indication (RSSI)
ı Packet or Bit Error Rate (PER / BER)
ı Signal to Noise Ratio (SNR)
The BT SIG Core Specification does not mandate the method of channel assessment
in order to identify the good and bad channels. Instead, the implementation is left up to
the chipset vendor to define or optimize. A variation between the EUT implementations
is certainly to be expected.
At minimum 20 channels can be used in the hopping pattern. AFH test capability with
the CMW is only applicable for the case for BR + EDR due to the fact that LE is tested
in DTM (non-signaling mode) only.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 6
Basic Ideas
The channel map is provided by the master and contains the relevant information
about the 79 frequency channels of the piconet:
ı A channel classification in good or bad channels based on:
a) Local measurements (e.g. active or passive assessment in the Controller)
b) Information from the Host via the Host Controller Interface (HCI)
c) Report messages (PDUs) received from the slaves
ı A set of used and unused channels in the piconet. On the CMW:
Used channels are stated blocked with the Return value of 0.
Unused channels are stated clear with the Return value of 1.
Channel Classification
The following channel classification is taken from the BT SIG Core Specification
Version 4.2. Note, that the CMW does not distinguish between an unknown channel
and a bad channel. Bad channel is used for both instances.
Classification Definition
A channel is classified as If the channel assessment measurements are insufficient to reliably
unknown, classify the channel is not marked bad in the most recent HCI.
A channel is classified as If at least one of the following applies:
bad, a) An asynchronous (ACL) or synchronous (SCO) connection-oriented
logical transport throughput failure measure has exceeded a threshold.
b) An interference-level measure due to a coexisting radio signal has
exceeded a threshold.
c) The channel is marked bad in the most recent HCI.
A channel is classified as If it is neither unknown nor bad.
good,
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 7
Basic Ideas
The Channel Map Generator implements a logical OR operation on these three inputs
in order to create the final AFH Channel Map utilized.
The CMW supports three AFH scenarios to generate the channel map:
ı CMW (MLAS) and EUT (SLAS) combination
ı EUT (SLAS) only
ı User Defined (HCCC equivalent)
Note: The majority of EUT's are not capable of modifying their AFH LAS, when in RF
Test mode. Instead, the Connection Test mode can be used.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 8
Basic Ideas
The BT stack within the CMW contains an error count channel table. For each channel
it counts the number of received errors as follows:
ı No answer; no packet received
ı HEC error
ı SCO/eSCO packet not received
Each time an error is detected on a particular channel, the error count is incremented.
If the error count on a particular channel reaches a threshold of six, then the channel is
classified and marked as a bad channel. Bad channels are temporarily excluded from
the channel hopping pattern.
The error count channel table is updated via the channel classification report sent from
the EUT (slave) back to the CMW (master). This allows for blocked channels to be
reintroduced in the active hopping pattern.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 9
Basic Ideas
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 10
Basic Ideas
Fig. 2-7: BT channel map displaying BT channels and channel characteristics for each time slot
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 11
Basic Ideas
The CMW (master) sends a Poll Packet every X number of slots depending upon the
ACL packet type (DH1, DH3, or DH5) to the EUT (slave). The CMW will expect to
receive an equivalent packet type response back in the next receive slot.
The CMW (master) sends DH1, DH3, or DH5 ACL Packets every X number of slots
depending upon the ACL packet type (DH1, DH3, or DH5) to the EUT (slave). The
CMW will expect to receive an equivalent packet type response back in the next
receive slot.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 12
Basic Ideas
For the case of operating mode 'Connection Test' the CMW will send a Poll packet
every forty time slots. The CMW will expect to receive a Null packet response back in
the next receive slot.
For the case of operating mode Profile' the CMW sends a SCO (HV1, HV2, or HV3)
packet every two slots and expects a SCO (HV1, HV2, or HV3) packet back every two
slots.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 13
Test Setups
3 Test Setups
Since AFH is available for Bluetooth BR/EDR devices only, the test setups described in
the CMW Bluetooth Signaling manual are covering all relevant test modes. A short
overview is given below.
Note: Some EUTs can be connected directly with a CMW’s USB port without USB
cable.
For more information on test setups with EUTs providing a USB port, a serial port or
even a 2-wire UART interface see the 1C105 application note.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 14
Remote Procedures
4 Remote Procedures
For remote operation the starting situation for all following configuration tasks is the
same:
ı The EUT is connected with the CMW.
ı The Bluetooth Signaling application is ON.
ı One of the connection states in chapter 2.3 is configured.
ı AFH is enabled.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 15
Remote Procedures
CONFigure:BLUetooth:SIGNaling:RFSettings:AFH:UCH
<CMAP>
The command specifies the user-defined channels of the channel map. The setting is
relevant for mode = USER.
Parameters:
<ChannelList> 0|1
79 comma separated values, one value per channel:
0: channel is blocked for AFH
1: channel is released for AFH
Note: The ability of the EUT to mark bad channels is dependent upon the CMWs TX
level, not only interferer level / bandwidth. Useful input TX levels range from about -15
dBm to -65 dBm.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 16
Remote Procedures
6. Set the User defined CSV AFH channel map prior to entering BT connected state.
CONF:BLU:SIGN:RFS:AFH:UCH <CMAP>
7. A delay of 1 second is set to allow for the new channel map to take effect.
8. Return the current CSV AFH channel map in use (modified).
SENS:BLU:SIGNaling:CMAP?
Note: In the user defined AFH mode configuration a delay is required between setting
and returning the channel map. This delay can vary among EUTs. Typically a delay of
1 second is sufficient for AFH testing.
A future BT FWA update will allow the status of the active channel map to be queried.
Notes:
ı It can take up to 30 seconds or more for the channel map to be modified, which
appears to be EUT dependent. Black-listing channels is a much faster process
than reintroducing them, typically less than 5 seconds.
ı AFH configuration for AFH Mode = EUT in ‘RF Test’ Operation Mode is not
compatible with some of the tested EUTs. In this case the Operation Mode
‘Connection Test’ is used.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 17
Ordering Information
5 Ordering Information
CMW Hardware
Designation Type Order No.
CMW Software
Designation Type Order No.
1C108_0e Rohde & Schwarz Bluetooth Adaptive Frequency Hopping on a R&S CMW 18
Rohde & Schwarz Regional contact
The Rohde & Schwarz electronics group offers Europe, Africa, Middle East
innovative solutions in the following business fields: +49 89 4129 12345
test and measurement, broadcast and media, secure customersupport@rohde-schwarz.com
communications, cybersecurity, radiomonitoring and
North America
radiolocation. Founded more than 80 years ago, this
1 888 TEST RSA (1 888 837 87 72)
independent company has an extensive sales and customer.support@rsa.rohde-schwarz.com
service network and is present in more than 70
countries. Latin America
+1 410 910 79 88
The electronics group is among the world market
customersupport.la@rohde-schwarz.com
leaders in its established business fields. The
company is headquartered in Munich, Germany. It Asia Pacific
also has regional headquarters in Singapore and +65 65 13 04 88
Columbia, Maryland, USA, to manage its operations customersupport.asia@rohde-schwarz.com
in these regions.
China
+86 800 810 82 28 |+86 400 650 58 96
customersupport.china@rohde-schwarz.com
www.rohde-schwarz.com