Professional Documents
Culture Documents
Chapter 4
Fall 2015/2016
Wireless Personal Area Networks
WPANs
Fall 2015/2016
possible cost for many control applications .
Fall 2015/2016
1998 by Ericsson, IBM, Intel, Nokia, and Toshiba.
• The concept behind Bluetooth is to provide a universal short-
range wireless capability.
• Using the 2.4-GHz band, available globally for unlicensed low-
power uses, two Bluetooth devices within 10 m of each other
can share up to 720 kbps of capacity.
• Asynchronous (data) and synchronous (voice) services should 5
be available
• Using
• Short-range radio technology
• Ad hoc networking “point-to-point network”.
• Dynamic discovery of other Bluetooth devices & the
services they offer
6
Fall 2015/2016
Europe, and most other countries.
Network Topology
• Piconet - subnet of Bluetooth devices, synchronized to the
timing and hopping sequence of a master
• Slaves only communicate with the master
• Maximum of 7 slaves in a piconet (as there are only 3 address
bits used in Bluetooth!).
• MAC address. A 3-bit medium access control address used to
distinguish between units participating in the piconet.
Fall 2015/2016
Bluetooth scatternet
Scatternet: Two or more independent and non-synchronized
piconets that communicate with each other. A slave as well as
a master unit in one piconet can establish this connection by
becoming a slave in the other piconet.
Fall 2015/2016
9
Network Topology
• Scatternet - multiple Bluetooth piconets joined together by
devices that are in more than one piconet.
• Up to 10 piconets can operate in one area.
• If a device is present in more than one piconet, it must time-
share, spending a few slots in one piconet and a few slots in
Fall 2015/2016
the other
• A device may not be master of two different piconets since all
slaves in a piconet are synchronized to the master’s hop
sequence, thus if the slaves were all synchronized with a
single master -- they would be part of the same piconet!
• This means that piconets making up a scatternet do not
coordinate their frequency hopping=>unsynchronized 10
piconets in an area will randomly collide on the same
frequency.
Fall 2015/2016
• Master assigns an Active Member address (AM_ADDR) to the
slaves participating in active communications in the piconet.
• Additional devices may be registered with the master and be
invited to become active as necessary -- their state is called
“parked”
• Devices not currently associated with any piconet are in
stand-by mode. 11
12
Protocol architecture
The Bluetooth protocol stack can be placed into three groups:
transport protocol group, middleware protocol group, and
application group
Fall 2015/2016
13
Protocol architecture
• Transport protocol group: is designed to allow Bluetooth
devices to locate and connect to each other.
• Transport protocol group consisting of:
• Radio layer: specifies the radio modem used for transmission and
reception. It is also responsible for assigning the master and slave roles.
• Baseband layer: Specifies coding and encryption for packet assembly
Fall 2015/2016
and FH operation
• Link manager protocol (LMP): provides authentication and encryption,
state of units in the piconet, power modes.
• Logical link control and adaptation protocol (L2CAP): provides
connection-oriented and connectionless data services to the upper
layer protocols. It is also responsible for segmenting larger packets from
higher layers into smaller packets, which are easier to handle by the
lower layer
• Host controller interface (HCI) layer: allows higher layers, including
14
applications, to access the baseband, link manager through a single
standard interface
Protocol architecture
• Middleware protocol group: this group comprises the protocols
needed for existing applications to operate over Bluetooth links.
• The protocols in this group can be third party and industry
standard protocols and protocols developed specifically by the
Special Interest Group:
• Service discovery protocol (SDP) layer: connects two or more
Fall 2015/2016
Bluetooth devices to support a service such as faxing, printing,
teleconferencing, or e-commerce facilities. The SDP is a standard
method for Bluetooth devices to discover and learn about the
services offered by the other device.
• Telephony control specification (TCS) layer: defines the call
control signaling and mobility management for the
establishment of speech for cordless telephone application
• The RFCOMM layer: is a “cable replacement” protocol that
emulates and provides a virtual the standard RS-232 (serial port)
to applications, because it is easy for applications designed for 15
cabled serial ports to migrate to Bluetooth
Protocol architecture
• Wireless Application Protocol (WAP) layer: Bluetooth
wireless communication uses a peer-to-peer network
topology rather than an LAN type topology. Dial-up
networking uses the attention (AT) command layer. It uses
the TCP/UDP protocols for Internet access over the
Fall 2015/2016
RFCOMM.
• Object exchange (OBEX) protocol: is a session protocol
developed by the Infrared Data Association to exchange
objects (as HTTP). It uses a client-server model and is
independent of the transport mechanism and transport
application programming interface
16
Protocol architecture
• Application Group:
• This group consists of actual applications that make use of
Bluetooth links and refers to the software that exists
above the protocol stack.
• The most interesting applications are those that
Fall 2015/2016
substantiate the Bluetooth profiles.
• The Bluetooth-SIG does not define any application
protocols nor does it specify any API.
• Bluetooth profiles are developed to establish a base point
for use of a protocol stack to accomplish a given usage
case.
17
spacing is 1 MHz
• Uses Gaussian Frequency Shift Keying (GFSK) modulation with one
bit per symbol
• Uses fast (1600 hops/s) frequency hopping spread spectrum (FHSS)
and a device uses a frequency for only 625 µs (1/1600 s) before it
hops to another frequency; the dwell time is 625 µs.
• One hop per packet, but a packet can be 1 slot, 3 slots, or 5 slots
long 18
Fall 2015/2016
• The access method in each piconet of Bluetooth is
TDMA/TDD.
• The length of a time slot is exactly the same as the dwell
time, 625 µs. This means that during the time that one
frequency is used, that can be extended to 3-slot (1875 µs)
and 5-slot (3125 µs).
19
20
Fall 2015/2016
• Master assigns time slots to slaves
• packets are joined together in transmit and receive pairs; master
and slaves alternate in time-division duplex (TDD)
• The master uses even numbered slots (0, 2, 4,..); the slave uses
odd-numbered slots (1, 3, 5, ...).
21
Transmit Power
• Original goal was a 10m radius of operation, but some thought about
using Bluetooth for longer ranges
• Power control is to reduce both interference and power
consumption.
• Power control is required for power class 1 equipment, whereas
power controls for power class 2 and 3 equipment is optional.
Fall 2015/2016
Fall 2015/2016
• The SCO link is symmetric and typically supports time-
bounded voice traffic. SCO packets are transmitted over
reserved intervals.
• A Master can create up to three SCQ links with the slave
at one time (may be to 1, 2, or 3 slaves).
• Circuit-switched connections, point-to-point connections-
(PCM) 64 kbps in each link per voice channel. 23
piconet bandwidth is given to each slave. But only one per slave.
• Broadcast packets: packets that are not addressed to a specific slave
• A packet in the baseband layer can be one of three types: one-slot,
three-slot, or five-slot.
• Multi-slot packets can be used in ACL and they can reach maximum
data rates of 721 kbps in one direction and 57.6 kbps in the other
direction if no error correction is used
24
• In a one-slot frame exchange, 259 µs is needed for hopping and control
mechanisms. This means that a one-slot frame can last only 625 - 259, or
366 µs.
Fall 2015/2016
25
• EX. What is the hopping rate of Bluetooth, and how many bits are
transmitted in one slot? If each frame of the HV3 voice packet in
Bluetooth carries 80 bits of sample speech, what is the efficiency
of the packet transmission? How often do HV3 packets have to be
sent to support 64 kbps voice in each direction? 26
Fall 2015/2016
N = 1490 bits for 3-slot frame
N = 2740 bits for 5-slot frame
27
responses.
• Inquiry access code (IAC): used for inquiry purposes
• NOTE: Inquiry and Paging comprise the network discovery
and setup procedures
• Payload: subfield can be 0 to 2745 bits long , contains user
voice or data and, in most cases, a payload header
28
Fall 2015/2016
• FLOW: 1-bit flow control used for ACL packets, if flow=0 asynchronous
data, transmission must stop,
• ARQN: 1-bit acknowledge indication - used to inform the source
of a successful transfer of payload data with CRC and can be
positive (ACK) or negative (NAK).
• SEQN: 1-bit sequence number
• HEC: 8-bit header error check
• The total header consists of 18 bits – encoded with a rate 1/3 29
FEC resulting in a 54-bit header
Fall 2015/2016
30
Error Correction
• The purpose of the FEC scheme on the data payload is to
reduce the number of retransmissions
• At the baseband level, Bluetooth makes use of three
error correction schemes:
• 1/3 rate FEC (forward error correction)
Fall 2015/2016
• 2/3 rate FEC
• ARQ
• FEC creates unnecessary overhead that reduces the
throughput. Therefore, the packet definitions have been
kept flexible as to whether or not to use FEC in the
payload.
• The packet header is always protected by a 1/3 rate FEC 31
32
Fall 2015/2016
information about the supported features.
• Quality of service negotiation: Depending on the quality of the channel,
DM or DH packets may be used (i.e., 2/3 FEC protection or no protection)
• Link supervision: Establishing ACL and SCO links.
• State and transmission mode change: Configuring links, e.g., controlling
Master/Slave switches , putting connections one of the low-power
modes
• Communicates with other LMs using the Link Management Protocol
33
(LMP) which is a set of messages, or Protocol Data Units (PDUs),
and piconets
• Does not require its own packets, but uses the (ARQN
and SEQN) bits in baseband packets for SCO and ACL links
to signal between link controllers - thus forming a logical
LC (Link Control) channel
34
Bluetooth States
• Standby state : Initial state
• In this mode, an unconnected unit periodically listens for
messages every 1.28 seconds.
• The connection procedure is initiated by any one of the devices,
which then becomes master
Fall 2015/2016
• Inquiry state : can happen in two different ways.
• A device wants to establish a piconet : starts the inquiry
procedure by sending an inquiry access code (IAC) that is
common to all Bluetooth devices over 32 so-called wake-up
carriers in turn
• A device that listen periodically: enter the inquiry mode
periodically to search for IAC messages on the wake-up carriers.
35
• If the inquiry was successful, a device enters the page mode
Bluetooth States
• Page state : Master invites devices to join the piconet.
• Depending on the device addresses received the master
calculates special hopping sequences to contact each device
individually
• Slave enters page response state and sends page response
including its device access code
Fall 2015/2016
• Master informs slave about its clock and address so that slave
can participate in piconet. Slave computes the clock offset
• A device synchronizes to the hopping pattern of the piconet it
also enters the connection state
• Connected: comprises the active state and the low power
states park, sniff, and hold
• Active: All devices being active must have the 3-bit active
36
member address (AMA). Actively exchange data
Bluetooth States
• To save battery power, a Bluetooth device can go into one of
three low power states:
• Sniff state: has the highest power consumption of the low
power states. Here, the device listens to the piconet at a
reduced rate , reduced number of slots for transmission, and
Fall 2015/2016
the device keeps its AMA.
• Hold state: the device does not release its AMA but stops
ACL transmission. A slave may still exchange SCO packets.
• Park state: the device releases its AMA and receives a
parked member address (PMA 8 bit). Parked devices are still
a member of the piconet and still FH synchronized and wake
up at certain beacon intervals for re-synchronization. All 37
PDUs sent to parked slaves are broadcast
38
Channel Control
• Interim sub-states for adding new slaves
• Page (master) – device issued a page
• Page scan (slave)– device is listening for a page
• Master response – master receives a page response from
slave
Fall 2015/2016
• Slave response – slave responds to a page from master
• Inquiry (master) – device has issued an inquiry for identity
of devices within range
• Inquiry scan (slave) – device is listening for an inquiry
• Inquiry response (slave) – device receives an inquiry
response 39
Logical Channels
• Different master-slave pairs of the same piconet can use
different link types.
• Each link type supports up to sixteen different packet types.
Four of these are control packets and are common for both
SCO and ACL links
Fall 2015/2016
• L2CAP provides three different types of logical channels that
are transported via the ACL between master and slave
• Connectionless: These unidirectional channels are typically used
for broadcasts from a master to its slave(s).
• Connection-oriented: Each channel of this type is bi-directional
and supports QoS flow specifications for each direction.
• Signaling: This third type of logical channel is used to exchanging
41
signaling messages between L2CAP entities.
Fall 2015/2016
• Uses binary encoding of information
• Unique identifiers (UUIDs) describe services and
attributes of these services such that you don’t need a
central registration authority for registering services
• Generally UUIDs are 128 bits long; however, for known
services 16-bit and 32-bit UUIDs may also be used.
43
Bluetooth Applications
• The following are some of the areas where Bluetooth can be
used:
• Replacing serial cables with radio links
• Wearable networks/WPANs
• Desktop/room wireless networking
Fall 2015/2016
Profiles
• Represents default solution for
a usage model
• Vertical slice through the
protocol stack
• Basis for interoperability and
Fall 2015/2016
logo requirements
• Each Bluetooth device
supports one or more profiles
45
Profiles
• Generic Access Profile
• Service Discovery Application Profile
• Serial Port Profile
• Dial-up Networking Profile
• Fax Profile
• Headset Profile
Fall 2015/2016
Profiles
Fall 2015/2016
47
Profiles
Fall 2015/2016
48
Profiles
Fall 2015/2016
49
Fall 2015/2016
51
ZigBee Technology
control solutions.
• Compared with IEEE 802.11 WiFi devices, ZigBee is designed
for very low cost communications among scattered devices
with minimal infrastructure.
• ZigBee intends to provide faster formation of the piconet, a
larger number of active users, it allows up to 254 nodes,
longer battery life, and lower data rates of 20-250 kb/s.
52
ZigBee Technology
Fall 2015/2016
• Typical application areas include:
Home Entertainment and Control
Industrial control
Embedded sensing
Medical data collection
Smoke and intruder warning 53
Fall 2015/2016
• A network includes at least one FFD, operating as the personal
area network (PAN) coordinator.
• An FFD can operate in three modes: a PAN coordinator, a
coordinator, or a device.
• An FFD can communicate with any other device and it can
help routing messages throughout the network. 55
Fall 2015/2016
57
Fall 2015/2016
consist of a network layer, which
provides network configuration,
manipulation, and message routing,
and an application layer, which
provides the intended function of a
device. An IEEE 802.2 logical link
control (LLC) can access the MAC
through the service specific 59
convergence sub-layer (SSCS).
• The data rate is 250 kbps at 2.4 GHz, 40 kbps at 915 MHz, and 20
kbps at 868 MHz
60
Fall 2015/2016
61
Fall 2015/2016
frame and MAC command frame.
• Only the data and beacon frames actually contain
information sent by higher layers; the acknowledgment and
MAC command frames originate in the MAC and are used
for MAC peer-to-peer communication.
• The MAC protocol data unit (MPDU) consists of the MAC
header (MHR), MAC service data unit (MSDU), and MAC 63
footer (MFR).
Applications
The IEEE 802.15.4 has been designed to be useful in a wide
variety of applications, including:
Fall 2015/2016
smart badges and tags;
• precision agriculture, such as the sensing of soil moisture,
pesticide, herbicide, and pH levels.
• Home automation and networking including heating,
ventilation, air conditioning, security, and lighting;
• Toys and games. 65
66