Professional Documents
Culture Documents
1
Telemetrie. Generalitati
2
Definitie
• Telemetrie: procesul de măsurare a caracteristicilor unui dispozitiv
sau sistem şi transmiterea acestora la distanţă către o staţie de bază
pentru vizualizare, analiză şi stocare
• In esenta telemetria este un sistem de transmitere a informatiei de la
senzori catre un concentrator
• Sistemele moderne folosesc comunicatii de date wireless
3
Aplicatii
• Meteorologie
• Teste de zbor
• Curse de masini
• Monitorizarea energiei
• Medicina / Ingrijire medicala
• Cercetarea comportamentului diverselor specii
• Inventariere/depozitare
• Comunicatii (monitorizarea bateriei)
• M2M (machine to machine communication)
• etc.
4
Scop
• Telemetria este un termen foarte vast care se regaseste in foarte
multe domenii
• Rolul este de a prelua informatii de la senzori si a le trimite catre un
nod central intr-un cadru automatizat in scopul monitorizarii si
potential al controlului
5
Digital Modulation Basics
6
Digital communication system configuration
• Access diversity technologies
• Spreading schemes:
• DSSS: IEEE 802.11b, IEEE.802.4, WCDMA
• FH: Bluetooth
• UWB: IEEE 802.15.3a, IEEE 802.15.4a
• Multi-carrier:
• OFDM: IEEE.802.11g,n, LTE, IEEE 802.15.4g (SUN), PLC G3/PRIME
• Multi-antenna:
• MIMO: IEEE 802.11n, LTE
• Baseband modulation schemes:
• Frequency modulation: FSK, GFSK, GMSK
• Phase modulation: M-PSK, OQPSK
• Phase/amplitude modulation: M-QAM
• Amplitude modulation: ASK, OOK
• Coding
• FEC (puncturing)
• Interleaving
• Repetition
7
Overview about OFDM
8
OFDM definition
9
OFDM principles
10
OFDM principles
• Time-domain spreading:
• Spreading is achieved in the time-domain by repeating the
same information in an OFDM symbol on two different sub-
bands => Frequency Diversity.
• Frequency-domain spreading:
• Spreading is achieved by choosing conjugate symmetric
inputs for the input to the IFFT (real output)
• Exploits frequency diversity and helps reduce the
transmitter complexity/power consumption.
11
FDM OFDM
12
OFDM theory
m
The signals exp j 2 t are orthogonal over [0, T] as illustrated
below: T
T
1 exp( j 2 m t ). exp(2 j l t )dt ml
T T T
0
13
Generic OFDM transmitter
OFDM symbol
bits symbols
FEC Mapping S/P IFFT Pulse shaper Linear
& PA
DAC
LO
add cyclic extension
time to
frequency mapper
14
OFDM symbol
# samples
# subcarriers
guard L data N NF
TIME:
0 Tg Tb t
Sampling Interval TS 1 / FS
Freq spacing F FS / N
FREQUENCY:
FS / 2 0 FS / 2 F
N F N F FS
F S
2 N 2 N
15
Generic OFDM receiver
Slot &
Timing
AGC Sync.
Freq.
Fine offset Offset
Estimation
(of all tones sent in one OFDM symbol)
16
OFDM advantages
• OFDM is spectrally efficient
• IFFT/FFT operation ensures that sub-carriers do not interfere with each other.
17
OFDM advantages
18
OFDM drawbacks
19
Spread spectrum technology
• Problem of radio transmission: frequency dependent fading can wipe out
narrow band signals for duration of the interference
• Solution: spread the narrow band signal into a broad band signal using a
special code - protection against narrow band interference
f f
• Side effects:
• coexistence of several signals without dynamic coordination
• tap-proof
• Possibilities: Direct Sequence, Frequency Hopping
20
Effects of spreading and interference
P(f) P(f)
user signal
i) ii) broadband interference/noise
narrowband interference
f f
sender
P(f) P(f) P(f)
iii) iv) v)
f f f
receiver
21
DSSS (Direct Sequence)
• XOR of the signal with pseudo-random number
(chipping sequence)
• many chips per bit (e.g., 128) result in higher bandwidth of tb
the signal
user data
• Advantages 0 1 XOR
• reduces frequency selective tc
fading chipping
• in cellular networks sequence
01101010110101 =
• base stations can use the
same frequency range resulting
signal
• several base stations can 01101011001010
detect and recover the signal
tb: bit period
• soft handover tc: chip period
• Disadvantages
• precise power control necessary
22
DSSS Transmit/Receive
spread
spectrum transmit
user data signal signal
X modulator
chipping radio
sequence carrier
transmitter
correlator
lowpass sampled
received filtered products sums
signal signal data
demodulator X integrator decision
radio chipping
carrier sequence
receiver
23
Frequency Hopping Spread Spectrum
(FHSS)
24
FHSS (Frequency Hopping)
25
FHSS Transmit/Receive
narrowband spread
signal transmit
user data signal
modulator modulator
frequency hopping
synthesizer sequence
transmitter
narrowband
received signal
signal data
demodulator demodulator
hopping frequency
sequence synthesizer
receiver
26
Phase/Frequency modulation transceiver
27
Zigbee and IEEE 802.15.4
overview
28
New trend of wireless technology
29
What is ZigBee Alliance?
30
IEEE 802.15 working group
31
Comparison between WPAN
32
ZigBee/IEEE 802.15.4 market feature
33
ZigBee network applications
monitors TV VCR
sensors DVD/CD
INDUSTRIAL CONSUMER
automation & ELECTRONIC
Remote
control COMMERCIAL S control
security
consoles
HVAC
portables TOYS & HOME lighting
educational GAMES AUTOMATION closures
34
Wireless technologies
35
ZigBee/802.15.4 architecture
• ZigBee Alliance
• 45+ companies: semiconductor mfrs, IP providers, OEMs, etc.
• Defining upper layers of protocol stack: from network to application, including application
profiles
• First profiles published mid 2003
• IEEE 802.15.4 Working Group
• Defining lower layers of protocol stack: MAC and PHY
Applications
Application Framework
36
How is ZigBee related to IEEE 802.15.4?
37
General characteristics
38
IEEE 802.15.4 basics
39
IEEE 802.15.4 Device Types
40
FFD vs RFD
• Full function device (FFD)
• Any topology
• Network coordinator capable
• Talks to any other device
41
Star topology
Network
coordinator
Master/slave
42
Peer to peer topology
43
Device addressing
44
IEEE 802.15.4 physical layer
45
IEEE 802.15.4 PHY overview
• PHY functionalities:
• Activation and deactivation of the radio
transceiver
• Energy detection within the current
channel
• Link quality indication for received
packets
• Clear channel assessment for CSMA-CA
• Channel frequency selection
• Data transmission and reception
46
IEEE 802.15.4 PHY Overview
• Operating frequency bands
2.4 GHz
PHY Channels 11-26 5 MHz
47
Frequency Bands and Data Rates
48
PHY Frame Structure
49
IEEE 802.15.4 PHY
TX
Idle -25 dBm: 8.42 mA
396 uA -15 dBm: 9.71 mA
-10 dBm: 10.9 mA
-7 dBm: 12.17 mA
-5 dBm: 12.27 mA
-3 dBm: 14.63 mA
RX
-1 dBm: 15.785 mA
19.6 mA
0 dBm: 17.04 mA
IMEC/MIT
IEEE 802.15.4 MAC
53
Superframe
Beacon Beacon
CAP CFP
GTS GTS
Inactive
0 1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
BI = aBaseSuperframeDuration*2BO symbols
54
Superframe
55
Superframe
56
Superframe
• Each device will be active for 2-(BO-SO) portion of the time, and sleep for
1-2-(BO-SO) portion of the time
• Duty Cycle:
BO-SO 0 1 2 3 4 5 6 7 8 9 ≧10
Duty cycle (%) 100 50 25 12 6.25 3.125 1.56 0.78 0.39 0.195 < 0.1
57
Data Transfer Model (I)
• Data transferred from device to coordinator
• In a beacon-enable network, a device finds the beacon to synchronize to
the superframe structure. Then it uses slotted CSMA/CA to transmit its data.
• In a non-beacon-enable network, device simply transmits its data using
unslotted CSMA/CA
Communication to a coordinator
In a non beacon-enabled network
Communication to a coordinator
In a beacon-enabled network
58
Data Transfer Model (II-1)
• Data transferred from
coordinator to device in a
beacon-enabled network:
• The coordinator indicates in the
beacon that some data is
pending.
• A device periodically listens to
the beacon and transmits a
Data Requst command using
slotted CSMA/CA.
• Then ACK, Data, and ACK
follow …
Communication from a coordinator
In a beacon-enabled network
59
Data transfer model (II-2)
• Data transferred from
coordinator to device in a non-
beacon-enable network:
• The device transmits a Data
Request using unslotted
CSMA/CA.
• If the coordinator has its
pending data, an ACK is replied.
• Then the coordinator transmits
Data using unslotted CSMA/CA. Communication from a coordinator
• If there is no pending data, a in a non beacon-enabled network
data frame with zero length
payload is transmitted.
60
Channel Access Mechanism
61
Slotted CSMA/CA algorithm
• In slotted CSMA/CA
• The backoff period boundaries of every device in the PAN shall be aligned
with the superframe slot boundaries of the PAN coordinator
• i.e. the start of first backoff period of each device is aligned with the start of the beacon
transmission
• The MAC sublayer shall ensure that the PHY layer commences all of its
transmissions on the boundary of a backoff period
62
Slotted CSMA/CA algorithm (cont.)
• Each device maintains 3 variables for each transmission attempt
• NB: number of times that backoff has been taken in this attempt (if exceeding
macMaxCSMABackoff, the attempt fails)
• BE: the backoff exponent which is determined by NB
• CW: contention window length, the number of clear slots that must be seen
after each backoff
• always set to 2 and count down to 0 if the channel is sensed to be clear
• The design is for some PHY parameters, which require 2 CCA for efficient channel usage.
• Battery Life Extension:
• designed for very low-power operation, where a node only contends in the first
6 slots
63
Slotted CSMA/CA (cont.) need 2 CCA to
ensure no
collision
64
Why 2 CCAs to Ensure Collision-Free
65
Why 2 CCAs (case 1) Backoff boundary
Existing
session
New CCA
transmitter
Backoff Detect
end here an ACK
New
transmitter CCA CCA
Backoff Detect
end here an ACK
66
Why 2 CCAs (Case 2) Backoff boundary
Existing
session
New CCA
transmitter
Backoff Detect
end here an ACK
New
transmitter CCA
Backoff Detect
end here an DATA
67
Why 2 CCAs (Case 3) Backoff boundary
Existing
session
New
transmitter CCA
Backoff Detect a
end here DATA
68
Unslotted
CSMA/CA
only one
CCA
69
Hidden Terminal Problem
A B C
70
Exposed Terminal Problem
• A starts sending to B.
71
GTS Concepts (I)
72
GTS Concepts (II)
73
GTS Concepts (III)
74
Association Procedures (1/2)
Scan
Association req. channel
ACK
Data req.
ACK
Association resp.
ACK
75
Association Procedures (2/2)
76
ZigBee Network Layer
Protocols
77
ZigBee Network Layer Overview
• Three kinds of networks are supported: star, tree, and mesh networks
78
ZigBee Network Layer Overview
79
Address Assignment
1 Cm ( Lm d 1), if Rm 1 (a)
Cskip(d ) 1 Cm Rm Cm Rm Lmd 1
, Otherwise (b)
1 Rm
80
Cskip=31 Total:127
For node C 0 1 32 63 94
125,126
node A 32
• If a parent node at depth d Cm=6
Addr = 64,
assigned to address
Aparent+(n-1)×Cskip(d)+1 Addr = 63,
Cskip = 7
Addr = 30
• nth child end device is Addr = 0,
C Cskip = 31
assigned to address
Aparent+Rm×Cskip(d)+n Addr = 1,
Cskip = 7
Addr = 126
A
Addr = 40,
Addr = 32,
Addr = 31 Cskip = 1
Cskip = 7
B
Addr = 33,
Cskip = 1
Addr = 45
C
Addr = 38
Addr = 39
81
ZigBee Routing Protocols
• In a tree network
• Utilize the address assignment to obtain the routing paths
• In a mesh network:
• Routing Capability: ZigBee coordinators and routers are said to have routing capacity if
they have routing table capacities and route discovery table capacities
• There are 2 options:
• Reactive routing: if having “routing capacity”
• Tree routing: if having no routing capacity
82
ZigBee Tree Routing
• Example: Addr = 1,
Addr = 126
Cskip = 7
• 38 45 A
Addr = 40,
• 38 92 Addr = 31
Addr = 32,
Cskip = 7
Cskip = 1
B
Addr = 33,
Cskip = 1
Addr = 45
C
Addr = 38
Addr = 39
83
ZigBee Mesh Routing
• Route discovery by AODV-like routing protocol
• The cost of a link is defined based on the packet delivery probability on that link
84
Routing in a Mesh network: Example
Discard route
request
B
req. C
route
a
req.
route route reply T
S
req.
rou
te r route
eq. D
rou
te r
eq.
Unicast
Broadcast
Without routing capacity
85
Summary of ZigBee network layer
Pros Cons
Star 1. Easy to synchronize 1. Small scale
2. Support low power
operation
3. Low latency
Tree 1. Low routing cost 1. Route reconstruction is
2. Can form superframes to costly
support sleep mode 2. Latency may be quite long
3. Allow multihop
communication
Mesh 1. Robust multihop 1. Cannot form superframes
communication (and thus cannot support
2. Network is more flexible sleep mode)
3. Lower latency 2. Route discovery is costly
3. Needs storage for routing
table 86
Bluetooth Low Energy (4.0)
87
What are the USE CASES planned for
BT 4.0?
• Proximity • HVAC
• Time • Generic I/O (automation)
• Emergency • Battery status
• Network availability • Heart rate monitor
• Personal User Interface • Physical activity monitor
• Simple remote control • Blood glucose monitor
• Browse over Bluetooth • Cycling sensors
• Temperature Sensor • Pulse Oximeter
• Humidity Sensor • Body thermometer
88
Example use: proximity
• It can enable proximity detection
• I’m in the car
• I’m in the office
• I’m in the meeting room
• I’m in the movie theater
• It can enable presence detection
• Turn the lights on when I walk around the house
• Automatically locks the door when I leave home
• Turn the alarm off if I’m already awake
89
Everyday objects can become sensors
My pulse is … My blood glucose is …
My temperature is …
91
Bluetooth low energy factsheet #2
• Data Throughput
• For Bluetooth low energy, data throughput is not a meaningful parameter. It
does not support streaming.
• It has a data rate of 1Mbps, but is not optimized for file transfer.
• It is designed for sending small chunks of data (exposing state)
92
Designed for exposing state
Gate 10
3.2 kWh
BOARDING
PLAY >> Network
Available
93
Bluetooth Low Energy Architecture
94
Device Modes
• Dual Mode
• Bluetooth BR/EDR and LE
• Used anywhere that BR/EDR
is used today
• Single Mode
• Implements only Bluetooth low energy
• Will be used in
new devices / applications
95
Device Modes
• Dual mode + single modes
96
Physical Layer
• 2.4 GHz ISM band
• 1Mbps GFSK
• Larger modulation index than Bluetooth BR (which means better range)
• 40 Channels on 2 MHz spacing
97
Physical Channels
• Two types of channels
98
Physical Channels
• Advertising channels avoid 802.11
99
Link Layer
• Link Layer state machine
100
Advertising
101
Data transactions
102
Link Layer Connection
• Very low latency connection
103
Time From Disconnected to Data ~ 3ms
104
How low can the energy get?
• From the previous slide, calculate energy per transaction
• Assume an upper bound of 3ms per minimal transaction
• Estimated TX power is 15mW (mostly TX power amp for 65nm
chips)
• For 1.5v battery, this is 10mA. 0.015W * 0.003 sec = 45 micro
Joule
• How long could a sensor last on a battery?
• An example battery: Lenmar WC357, 1.55v, 180mAh, $2-5
• 180mAh/10mA = 18Hr = 64,800 seconds = 21.6M transactions
• Suppose this sensor sends a report every minute = 1440/day
• For just the BT LE transactions, this is 15,000 days, or > 40 years
• This far exceeds the life of the battery and/or the product
• This means that battery will cost more than the electronics
• This sensor could run on scavenged power, e.g. ambient light
105
Comparison Zigbee vs BLE
106
ZigBee and Bluetooth Low Energy
• Business comparison:
• ZigBee is older. It has gone through some iterations
• ZigBee has market mindshare, but not a lot of shipments yet.
• Market barriers: connectivity – ZigBee is not in PCs or mobile phones yet.
• Technical comparison:
• Zigbee is low power; Bluetooth LE is even lower. Detailed analysis depends on
specific applications and design detail, no to mention chip geometry.
• ZigBee stack is light; the Bluetooth LE/GATT stack is even simpler
• Going forward:
• ZigBee has a lead on developing applications and presence
• Bluetooth low energy has improved technology, and a commanding presence in
several existing markets: mobile phones, automobiles, consumer electronics, PC
industry
• Replacing “classic Bluetooth ” with “dual mode” devices will bootstrap this
market quickly
108