SlideShare uma empresa Scribd logo
1 de 27
Instructor:
Mohsen Sarakbi
ZigBee Module
Communication PIC-Microcontroller Lab
Course by JAOM Center, Feb. 2013
ZigBee Definition
 Based on IEEE 802.15.4 Standard (Addressing)
 Designed for sensor and control networks
 Used for applications that require:
 Low Power Consumption
 Low Data Rate
 Network Security
Wireless Comparison
ZigBee Layers
ZigBee Layers
 Two lower layers, the physical layers (PHY) and the media access
layer (MAC) are defined by the IEEE 802.15.4 specification.
 The PHY deals with the implementation of the direct sequence
spread spectrum (DSSS) radio hardware in 2.4GHz band
 The MAC handles access to the PHY layer.
 Network Layer;Ad-hoc
 The above layers are defined by the ZigBeeAlliance, except the
application layer which is defined by the end user.
ZigBee Layers
ZigBee Network
ZigBee Network
 Coordinator : One coordinator exists in each network.
• Each network has 1 coordinator
• Coordinator selects channel and PAN ID
• Other devices then join the PAN
• Usually powered by something stable
• 16-bit address is always 0
• Assigns 16-bit address for the router and end devices
ZigBee Network
 Routers: Many routers exist in each network.
• Optional
• Often powered by something stable
• Can have as many as you want
• Issues a request on startup to find a coordinator/network it
can join
• Can talk to any device
• If an end device is sleeping it stores its data
• Coordinator can act as a “super router”
ZigBee Network
 End Devices: Many end devices exist in each network.
 Usually battery powered
 They sleep most of the time and wake up regularly to collect
and transmit data.
 Devices such as sensors are configured as end devices.
 They are connected to the network through the routers.
 Can have as many as you want
XBEE Module
XBEE Features
 www.digi.com
 802.15.4 / Multipoint network topologies
 2.4 GHz for worldwide deployment
 900 MHz for long-range deployment
 Low-power sleep modes
 Multiple antenna options
XBEE Chip
Regular vs. Pro
XBEE XBEE Pro
Power 1-2mW 50-60mW
Size Smaller Larger
Range Shorter range (100m) Longer range (300m)
Cost Cheaper More expensive
XBEE Addressing
• Channels
• PAN ID
• 64-bit address
• High -0013A200 same for all XBees
• Low – each XBee has its own address
• 16-bit address (Series 1 only)
ZBEE Point-to-Point
XBEE Firmware
• Must upload with X-CTU (onWindows)
• AT Commands
XBEE Configuration
Command Mode
 +++ gets you into command mode
 1 second delay on either side
 No <enter>
 Should get “OK” back
 Times out after 10 seconds
• Commands use Hexadecimals
• Always Press Enter
AT Commands
• AT – just returns an “OK”
• ATMY – 16- bit address (Series 1 only)
• ATDH – 64-bit destination address high bits
• ATDL – 64-bit destination address low bits
• ATID – PAN ID
• ATCN – end command mode
• ATRE – reset all settings
• ATWR – write settings to flash
 ATBD followed by 0-7 depending on the BaudRate you want
 0 = 1200, 1 = 2400, 2 = 4800, 3 = 9600, 4 = 19200, 5 = 38400,
6 = 57600, 7 = 115200
AT Commands
ZBEE Point-to-Point
 A peer-to-peer network can be established by:
 configuring each module to operate as an End
Device (CE = 0)
 disabling End DeviceAssociation on all modules
(A1 = 0)
 setting ID and CH parameters to be identical
across the network.
Unicast Mode
 ZBEE 16-bit Address
 Short 16-bit addresses.The module can be configured
to use short 16-bit addresses as the Source Address by:
 Setting (MY < 0xFFFE).
 Setting the DH parameter (DH = 0) will configure the
DestinationAddress to be a short 16-bit address (if DL <
0xFFFE).
 For two modules to communicate using short addressing, the
DestinationAddress of the transmitter module must match
the MY parameter of the receiver.
Unicast Mode
 ZBEE 64-bit Address
 Long 64-bit addresses.The RF module’s serial number
(SL parameter concatenated to the SH parameter) can
be used as a 64-bit source address when the MY (16-
bit Source Address) parameter is disabled.When the
MY parameter is disabled (MY = 0xFFFF or 0xFFFE),
the module’s source address is set to the 64-bit IEEE
address stored in the SH and SL parameters.
Broadcast Mode
 One to All
 Any RF module within range will accept a packet that
contains a broadcast address.
 To send a broadcast packet to all modules regardless of
16-bit or 64-bit addressing.
 Sample Network Configuration (All modules in the
network):
 DL (Destination LowAddress) = 0x0000FFFF
 DH (Destination High Address) = 0x00000000
Lab
 X-CTU
 XBEE to XBEE connection (without PIC)
 16-bit & 64 bit
 Broadcast
 Using PIC for an application
ZigBee module

Mais conteúdo relacionado

Mais procurados

Orthogonal Frequency Division Multiplexing (OFDM)
Orthogonal Frequency Division Multiplexing (OFDM)Orthogonal Frequency Division Multiplexing (OFDM)
Orthogonal Frequency Division Multiplexing (OFDM)Gagan Randhawa
 
Evolution of mobile communication
Evolution of mobile communicationEvolution of mobile communication
Evolution of mobile communicationMohamed Reda
 
Millimeter wave as the future of 5g
Millimeter wave as the future of 5g Millimeter wave as the future of 5g
Millimeter wave as the future of 5g Saurabh Verma
 
Wireless pan technologies ieee 802.15.x
Wireless pan technologies ieee 802.15.xWireless pan technologies ieee 802.15.x
Wireless pan technologies ieee 802.15.xPawan Koshta
 
Gsm.....ppt
Gsm.....pptGsm.....ppt
Gsm.....pptbalu008
 
Introduction to Massive Mimo
Introduction to Massive MimoIntroduction to Massive Mimo
Introduction to Massive MimoAhmed Nasser Agag
 
Antennas used in mobiles
Antennas used in mobilesAntennas used in mobiles
Antennas used in mobilesMugadha Bane
 
cell splitting and sectoring
cell splitting and sectoringcell splitting and sectoring
cell splitting and sectoringShwetanshu Gupta
 
Cellular Telephone Systems
Cellular Telephone SystemsCellular Telephone Systems
Cellular Telephone SystemsShantanu Krishna
 
Millimeter Wave mobile communications for 5g cellular
Millimeter Wave mobile communications for 5g cellularMillimeter Wave mobile communications for 5g cellular
Millimeter Wave mobile communications for 5g cellularraghubraghu
 
Evolution of mobile radio communication
Evolution of mobile radio communicationEvolution of mobile radio communication
Evolution of mobile radio communicationjadhavmanoj01
 
Wireless communication
Wireless communicationWireless communication
Wireless communicationDarshan Maru
 
Wireless communication
Wireless communicationWireless communication
Wireless communicationLiton Ahmed
 

Mais procurados (20)

Orthogonal Frequency Division Multiplexing (OFDM)
Orthogonal Frequency Division Multiplexing (OFDM)Orthogonal Frequency Division Multiplexing (OFDM)
Orthogonal Frequency Division Multiplexing (OFDM)
 
Femtocell ppt
Femtocell pptFemtocell ppt
Femtocell ppt
 
Evolution of mobile communication
Evolution of mobile communicationEvolution of mobile communication
Evolution of mobile communication
 
Millimeter wave as the future of 5g
Millimeter wave as the future of 5g Millimeter wave as the future of 5g
Millimeter wave as the future of 5g
 
Walkie talkie
Walkie talkieWalkie talkie
Walkie talkie
 
Wireless pan technologies ieee 802.15.x
Wireless pan technologies ieee 802.15.xWireless pan technologies ieee 802.15.x
Wireless pan technologies ieee 802.15.x
 
Gsm.....ppt
Gsm.....pptGsm.....ppt
Gsm.....ppt
 
Introduction to Massive Mimo
Introduction to Massive MimoIntroduction to Massive Mimo
Introduction to Massive Mimo
 
Antennas used in mobiles
Antennas used in mobilesAntennas used in mobiles
Antennas used in mobiles
 
cell splitting and sectoring
cell splitting and sectoringcell splitting and sectoring
cell splitting and sectoring
 
Wireless networks ppt
Wireless networks pptWireless networks ppt
Wireless networks ppt
 
Wlan architecture
Wlan architectureWlan architecture
Wlan architecture
 
5G antenna-Technology
5G antenna-Technology5G antenna-Technology
5G antenna-Technology
 
Cellular Telephone Systems
Cellular Telephone SystemsCellular Telephone Systems
Cellular Telephone Systems
 
Millimeter Wave mobile communications for 5g cellular
Millimeter Wave mobile communications for 5g cellularMillimeter Wave mobile communications for 5g cellular
Millimeter Wave mobile communications for 5g cellular
 
MIMO
MIMOMIMO
MIMO
 
Anten ve Propagasyonu
Anten ve PropagasyonuAnten ve Propagasyonu
Anten ve Propagasyonu
 
Evolution of mobile radio communication
Evolution of mobile radio communicationEvolution of mobile radio communication
Evolution of mobile radio communication
 
Wireless communication
Wireless communicationWireless communication
Wireless communication
 
Wireless communication
Wireless communicationWireless communication
Wireless communication
 

Destaque

PIC microcontroller review
PIC microcontroller reviewPIC microcontroller review
PIC microcontroller reviewMohsen Sarakbi
 
RF transmitter & receiver
RF transmitter & receiverRF transmitter & receiver
RF transmitter & receivercodexdesign
 
Understanding RF Fundamentals and the Radio Design of Wireless Networks
Understanding RF Fundamentals and the Radio Design of Wireless NetworksUnderstanding RF Fundamentals and the Radio Design of Wireless Networks
Understanding RF Fundamentals and the Radio Design of Wireless NetworksCisco Mobility
 
Wireless communication
Wireless communicationWireless communication
Wireless communicationKomal Gandhi
 

Destaque (6)

Basics of RF
Basics of RFBasics of RF
Basics of RF
 
PIC microcontroller review
PIC microcontroller reviewPIC microcontroller review
PIC microcontroller review
 
RF module
RF moduleRF module
RF module
 
RF transmitter & receiver
RF transmitter & receiverRF transmitter & receiver
RF transmitter & receiver
 
Understanding RF Fundamentals and the Radio Design of Wireless Networks
Understanding RF Fundamentals and the Radio Design of Wireless NetworksUnderstanding RF Fundamentals and the Radio Design of Wireless Networks
Understanding RF Fundamentals and the Radio Design of Wireless Networks
 
Wireless communication
Wireless communicationWireless communication
Wireless communication
 

Semelhante a ZigBee module

MAC address Rohit Kumar Shah.pptx
MAC address Rohit Kumar Shah.pptxMAC address Rohit Kumar Shah.pptx
MAC address Rohit Kumar Shah.pptxRohitKumarShah6
 
WPAN According To ZIGBEE
WPAN According To ZIGBEEWPAN According To ZIGBEE
WPAN According To ZIGBEEAfaq Siddiqui
 
Wireless LANs(IEEE802.11) Architecture
Wireless LANs(IEEE802.11) Architecture Wireless LANs(IEEE802.11) Architecture
Wireless LANs(IEEE802.11) Architecture Raj vardhan
 
Networking
NetworkingNetworking
NetworkingRashmi
 
networking devices -161021181705452555
networking   devices -161021181705452555networking   devices -161021181705452555
networking devices -161021181705452555mercyzyada1999
 
Aspects Stratégiques des Réseaux
Aspects Stratégiques des RéseauxAspects Stratégiques des Réseaux
Aspects Stratégiques des RéseauxEric Vyncke
 
Long range wireless modules
Long range wireless modulesLong range wireless modules
Long range wireless modulesshashi gautam
 
wifi-technology
 wifi-technology wifi-technology
wifi-technologytardeep
 
Networking devices
Networking devicesNetworking devices
Networking devicesfrestoadi
 
Wireless%20networking%20technology(1)
Wireless%20networking%20technology(1)Wireless%20networking%20technology(1)
Wireless%20networking%20technology(1)Darpan Patel
 
EC8004 wireless networks unit 1
EC8004 wireless networks unit 1 EC8004 wireless networks unit 1
EC8004 wireless networks unit 1 HemalathaR31
 
Unit I Wireless Networks.ppt
Unit I Wireless Networks.pptUnit I Wireless Networks.ppt
Unit I Wireless Networks.pptSiva Cool
 

Semelhante a ZigBee module (20)

MAC address Rohit Kumar Shah.pptx
MAC address Rohit Kumar Shah.pptxMAC address Rohit Kumar Shah.pptx
MAC address Rohit Kumar Shah.pptx
 
Zigbee Basics
Zigbee BasicsZigbee Basics
Zigbee Basics
 
Networking HMT-2
Networking HMT-2Networking HMT-2
Networking HMT-2
 
Network
NetworkNetwork
Network
 
WPAN According To ZIGBEE
WPAN According To ZIGBEEWPAN According To ZIGBEE
WPAN According To ZIGBEE
 
IPV6
IPV6IPV6
IPV6
 
Wireless LANs(IEEE802.11) Architecture
Wireless LANs(IEEE802.11) Architecture Wireless LANs(IEEE802.11) Architecture
Wireless LANs(IEEE802.11) Architecture
 
Networking basics
Networking basicsNetworking basics
Networking basics
 
Wi-Fi Module
Wi-Fi ModuleWi-Fi Module
Wi-Fi Module
 
Networking
NetworkingNetworking
Networking
 
Zigbee
ZigbeeZigbee
Zigbee
 
networking devices -161021181705452555
networking   devices -161021181705452555networking   devices -161021181705452555
networking devices -161021181705452555
 
Aspects Stratégiques des Réseaux
Aspects Stratégiques des RéseauxAspects Stratégiques des Réseaux
Aspects Stratégiques des Réseaux
 
Long range wireless modules
Long range wireless modulesLong range wireless modules
Long range wireless modules
 
wifi-technology
 wifi-technology wifi-technology
wifi-technology
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Wireless%20networking%20technology(1)
Wireless%20networking%20technology(1)Wireless%20networking%20technology(1)
Wireless%20networking%20technology(1)
 
EC8004 wireless networks unit 1
EC8004 wireless networks unit 1 EC8004 wireless networks unit 1
EC8004 wireless networks unit 1
 
Unit I Wireless Networks.ppt
Unit I Wireless Networks.pptUnit I Wireless Networks.ppt
Unit I Wireless Networks.ppt
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 

Último

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Último (20)

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

ZigBee module

  • 1. Instructor: Mohsen Sarakbi ZigBee Module Communication PIC-Microcontroller Lab Course by JAOM Center, Feb. 2013
  • 2. ZigBee Definition  Based on IEEE 802.15.4 Standard (Addressing)  Designed for sensor and control networks  Used for applications that require:  Low Power Consumption  Low Data Rate  Network Security
  • 5. ZigBee Layers  Two lower layers, the physical layers (PHY) and the media access layer (MAC) are defined by the IEEE 802.15.4 specification.  The PHY deals with the implementation of the direct sequence spread spectrum (DSSS) radio hardware in 2.4GHz band  The MAC handles access to the PHY layer.  Network Layer;Ad-hoc  The above layers are defined by the ZigBeeAlliance, except the application layer which is defined by the end user.
  • 8. ZigBee Network  Coordinator : One coordinator exists in each network. • Each network has 1 coordinator • Coordinator selects channel and PAN ID • Other devices then join the PAN • Usually powered by something stable • 16-bit address is always 0 • Assigns 16-bit address for the router and end devices
  • 9. ZigBee Network  Routers: Many routers exist in each network. • Optional • Often powered by something stable • Can have as many as you want • Issues a request on startup to find a coordinator/network it can join • Can talk to any device • If an end device is sleeping it stores its data • Coordinator can act as a “super router”
  • 10. ZigBee Network  End Devices: Many end devices exist in each network.  Usually battery powered  They sleep most of the time and wake up regularly to collect and transmit data.  Devices such as sensors are configured as end devices.  They are connected to the network through the routers.  Can have as many as you want
  • 12. XBEE Features  www.digi.com  802.15.4 / Multipoint network topologies  2.4 GHz for worldwide deployment  900 MHz for long-range deployment  Low-power sleep modes  Multiple antenna options
  • 14. Regular vs. Pro XBEE XBEE Pro Power 1-2mW 50-60mW Size Smaller Larger Range Shorter range (100m) Longer range (300m) Cost Cheaper More expensive
  • 15. XBEE Addressing • Channels • PAN ID • 64-bit address • High -0013A200 same for all XBees • Low – each XBee has its own address • 16-bit address (Series 1 only)
  • 17. XBEE Firmware • Must upload with X-CTU (onWindows) • AT Commands
  • 19. Command Mode  +++ gets you into command mode  1 second delay on either side  No <enter>  Should get “OK” back  Times out after 10 seconds • Commands use Hexadecimals • Always Press Enter
  • 20. AT Commands • AT – just returns an “OK” • ATMY – 16- bit address (Series 1 only) • ATDH – 64-bit destination address high bits • ATDL – 64-bit destination address low bits • ATID – PAN ID • ATCN – end command mode • ATRE – reset all settings • ATWR – write settings to flash  ATBD followed by 0-7 depending on the BaudRate you want  0 = 1200, 1 = 2400, 2 = 4800, 3 = 9600, 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200
  • 22. ZBEE Point-to-Point  A peer-to-peer network can be established by:  configuring each module to operate as an End Device (CE = 0)  disabling End DeviceAssociation on all modules (A1 = 0)  setting ID and CH parameters to be identical across the network.
  • 23. Unicast Mode  ZBEE 16-bit Address  Short 16-bit addresses.The module can be configured to use short 16-bit addresses as the Source Address by:  Setting (MY < 0xFFFE).  Setting the DH parameter (DH = 0) will configure the DestinationAddress to be a short 16-bit address (if DL < 0xFFFE).  For two modules to communicate using short addressing, the DestinationAddress of the transmitter module must match the MY parameter of the receiver.
  • 24. Unicast Mode  ZBEE 64-bit Address  Long 64-bit addresses.The RF module’s serial number (SL parameter concatenated to the SH parameter) can be used as a 64-bit source address when the MY (16- bit Source Address) parameter is disabled.When the MY parameter is disabled (MY = 0xFFFF or 0xFFFE), the module’s source address is set to the 64-bit IEEE address stored in the SH and SL parameters.
  • 25. Broadcast Mode  One to All  Any RF module within range will accept a packet that contains a broadcast address.  To send a broadcast packet to all modules regardless of 16-bit or 64-bit addressing.  Sample Network Configuration (All modules in the network):  DL (Destination LowAddress) = 0x0000FFFF  DH (Destination High Address) = 0x00000000
  • 26. Lab  X-CTU  XBEE to XBEE connection (without PIC)  16-bit & 64 bit  Broadcast  Using PIC for an application