CSE 122/222C ; WES 269�IEEE 802.15.4
Pat Pannuto, UC San Diego
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
IEEE 802.15.4 Goals
2
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
References
Other helpful references:
3
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Outline
4
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Comparison of networks
5
Data
Throughput
Range
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Comparison of networks
6
Bluetooth
WiFi
Cellular
BLE
802.15.4
Data
Throughput
Range
LPWANs
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Comparison of networks
7
Bluetooth
WiFi
Cellular
BLE
802.15.4
Data
Throughput
Range
There are some missing qualities here.��Why be closer to the origin?
LPWANs
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Comparison of networks
8
Bluetooth
WiFi
Cellular
BLE
802.15.4
Data
Throughput
Range
Lower Power &�Lower Cost
Higher Power &�Higher Cost
LPWANs
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
IEEE 802….
9
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
IEEE 802
10
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
IEEE 802.15
11
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
802.15.4 (LR-WPANs) Overview�“Low-Rate Wireless Personal Area Networks”
12
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
IEEE 802.15.4
13
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Outline
14
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
802.15.4 Physical Layers
15
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Physical Layer
16
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
802.15.4 Modulation (@2.4 GHz fc)�O-QPSK with half-sine shaping is MSK!
17
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
802.15.4 Modulation (@2.4 GHz fc)�O-QPSK with half-sine shaping is MSK!
18
Input bit stream
Broken into 4-bit symbols
Each symbol maps to a 32-bit pseudo-noise code (PN-code) or sometimes pseudo-random sequence
Each bit of the PN code is called a chip
Each chip encodes half a sine wine
Chips alternate in-phase and quadrature
Quadrature component is offset π/2
I and Q half-sines are baseband, which are mixed with the carrier
I and Q carriers are combined to create the final on-air signal
Signal is MSK, which is a special, optimal case of FSK!
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
802.15.4 Modulation (@2.4 GHz fc)�O-QPSK with half-sine shaping is MSK!
19
Input bit stream
Broken into 4-bit symbols
Each symbol maps to a 32-bit pseudo-noise code (PN-code) or sometimes pseudo-random sequence
Each bit of the PN code is called a chip
Each chip encodes half a sine wine
Chips alternate in-phase and quadrature
Quadrature component is offset π/2
I and Q half-sines are baseband, which are mixed with the carrier
I and Q carriers are combined to create the final on-air signal
Signal is MSK, which is a special, optimal case of FSK!
Final detail:
This shows a fb :: fc ratio of 1 :: 10 so you can see the impact on the carrier. In reality, it’s closer to 1 :: 1200 (2,000 chips / s :: 2,400,000 Hz)
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
O-QPSK results in continuous wave
20
Standard BPSK
O-QPSK (MSK)
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
The magic of I and Q channels are that we get two dimensions
21
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Constellation Diagrams give ‘at-a-glance’ understanding of modulation schemes
22
I
Q
802.15.4
( MSK )
BLE ?
( [G]FSK ) ?
I
Q
OOK ?
( ASK ) ?
Obligatory EE Disclaimer
Many FSK frontends are implemented via IQ modulation internally…
0
1
0
1
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Why do we map symbols to chips?
… and sent 32 bits instead??
23
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Direct Sequence Spread Spectrum (DSSS)
24
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
DSSS example
25
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Show me the money:�What is the actual bit rate of 802.15.4 (2.4 GHz)?
26
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
802.15.4 RF channels
27
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Regional bands
28
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Bringing it back together—what does all this mean for communication in practice?
29
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Outline
30
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
802.15.4 network topologies
31
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Star and Tree topologies
32
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Break + Mesh networks
33
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Mesh networks
34
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Reminder: CSMA/CA�Carrier Sense Multiple Access with Collision Avoidance
0. Set wait range to [0, short)
35
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Modes of operation
36
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Beacon-enabled superframe structure
37
Contention Access Period
Beacon
Inactive Period
Beacon
…
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Guaranteed Time Slots (GTS)
38
Contention Access Period
Beacon
Inactive Period
Beacon
Guaranteed Time Slots
…
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Handling tree-based topologies
39
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Non-beacon-enabled PAN
40
Contention Access Period
…
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Non-beacon-enabled PAN
41
Contention Access Period
…
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Receiving messages
42
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Clear Channel Assessment (CCA)
43
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Slotted CSMA/CA operation
44
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Unslotted CSMA/CA operation
45
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Break + Question
46
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Break + Question
47
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Outline
48
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Base packet format
49
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Base packet format
50
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
MAC frame format
51
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Frame control
52
Why no length field?
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Frame control
53
Why no length field?
Already in prior header
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Frame types - Beacon
54
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Frame types - Data
55
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Frame types – MAC Command
56
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Frame types - Acknowledgement
57
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Quick Analysis: Maximum goodput?
58
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell
Next time: Meshing and Low Power MACs
59
CSE 122/222C ; WES 269 [WI25]
CC BY-NC-ND Pat Pannuto – Content developed in coordination with Branden Ghena and Brad Campbell