SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

soldier tracking and health monitoring system
soldier tracking and health monitoring systemsoldier tracking and health monitoring system
soldier tracking and health monitoring systemJoshpin Bala.B
 
Arduino based health monitoring system
Arduino based health monitoring systemArduino based health monitoring system
Arduino based health monitoring systemYousuf Shaikh
 
Low Power Wireless Technologies and Standards for the Internet of Things
Low Power Wireless Technologies and Standards for the Internet of ThingsLow Power Wireless Technologies and Standards for the Internet of Things
Low Power Wireless Technologies and Standards for the Internet of ThingsDuncan Purves
 
border-security-using-wins
 border-security-using-wins border-security-using-wins
border-security-using-winsAakashkumar276
 
zigbee technology
zigbee technologyzigbee technology
zigbee technologyDeep Hundal
 
wireless sensor network my seminar ppt
wireless sensor network my seminar pptwireless sensor network my seminar ppt
wireless sensor network my seminar pptEisha Madhwal
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth TechnologyManish Sharma
 
Wireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docxWireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docxAbhishekGM10
 
Bluetooth Power point presentation
Bluetooth Power point presentationBluetooth Power point presentation
Bluetooth Power point presentationjogiparthyramya
 
Vehicle accident detection and messaging system using GSM and arduino
Vehicle accident detection and messaging system using GSM and arduinoVehicle accident detection and messaging system using GSM and arduino
Vehicle accident detection and messaging system using GSM and arduinoRamesh Reddy
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology pptijaranjani
 

Tendances (20)

soldier tracking and health monitoring system
soldier tracking and health monitoring systemsoldier tracking and health monitoring system
soldier tracking and health monitoring system
 
GPRS
GPRSGPRS
GPRS
 
Zigbee
ZigbeeZigbee
Zigbee
 
Arduino based health monitoring system
Arduino based health monitoring systemArduino based health monitoring system
Arduino based health monitoring system
 
zigbee full ppt
zigbee full pptzigbee full ppt
zigbee full ppt
 
Low Power Wireless Technologies and Standards for the Internet of Things
Low Power Wireless Technologies and Standards for the Internet of ThingsLow Power Wireless Technologies and Standards for the Internet of Things
Low Power Wireless Technologies and Standards for the Internet of Things
 
border-security-using-wins
 border-security-using-wins border-security-using-wins
border-security-using-wins
 
zigbee technology
zigbee technologyzigbee technology
zigbee technology
 
Zig Bee
Zig BeeZig Bee
Zig Bee
 
ZIGBEE TECHNOLOGY ppt
ZIGBEE TECHNOLOGY pptZIGBEE TECHNOLOGY ppt
ZIGBEE TECHNOLOGY ppt
 
wireless sensor network my seminar ppt
wireless sensor network my seminar pptwireless sensor network my seminar ppt
wireless sensor network my seminar ppt
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth Technology
 
Home automation
Home automationHome automation
Home automation
 
Wireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docxWireless E-Notice Board Using Bluetooth Report.docx
Wireless E-Notice Board Using Bluetooth Report.docx
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Bluetooth Power point presentation
Bluetooth Power point presentationBluetooth Power point presentation
Bluetooth Power point presentation
 
Vehicle accident detection and messaging system using GSM and arduino
Vehicle accident detection and messaging system using GSM and arduinoVehicle accident detection and messaging system using GSM and arduino
Vehicle accident detection and messaging system using GSM and arduino
 
Smart watch
Smart watchSmart watch
Smart watch
 
Zigbee
ZigbeeZigbee
Zigbee
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology ppt
 

En vedette

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
 
Wireless communication
Wireless communicationWireless communication
Wireless communicationDarshan Maru
 

En vedette (7)

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
 
Wireless communication
Wireless communicationWireless communication
Wireless communication
 

Similaire à 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
 
Multi-mode Wireless SoCs
Multi-mode Wireless SoCsMulti-mode Wireless SoCs
Multi-mode Wireless SoCsSilicon Labs
 

Similaire à 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
 
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
 
Multi-mode Wireless SoCs
Multi-mode Wireless SoCsMulti-mode Wireless SoCs
Multi-mode Wireless SoCs
 

Dernier

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Dernier (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

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