SlideShare una empresa de 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

Más contenido relacionado

La actualidad más candente

Iot based health monitoring system
Iot based health monitoring systemIot based health monitoring system
Iot based health monitoring systemShaswataMohanta
 
Li-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/ReportLi-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/ReportTSriyaSharma
 
Android-based surveillance Robot
Android-based surveillance RobotAndroid-based surveillance Robot
Android-based surveillance RobotTonmoy Bora
 
bluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinhabluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinhaShubham Sinha
 
02 optical fiber-waveguides
02 optical fiber-waveguides02 optical fiber-waveguides
02 optical fiber-waveguidesMuhammad Saad
 
Project Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using AndroidProject Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using AndroidVaibhav Gautam
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth TechnologyManish Sharma
 
Automatic door using arduino
Automatic door using arduinoAutomatic door using arduino
Automatic door using arduinosayyed sabir
 
The Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFiThe Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFiMostafa Ali
 
Android Based Home Automation Control
Android Based Home Automation ControlAndroid Based Home Automation Control
Android Based Home Automation ControlVivek Porwal
 
CSGR(cluster switch gateway routing)
CSGR(cluster switch gateway routing)CSGR(cluster switch gateway routing)
CSGR(cluster switch gateway routing)Gaurav Dalvi
 
Monitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSMMonitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSMpriyanka kini
 
4G EPC architecture by saurav sarker
4G EPC architecture by saurav sarker4G EPC architecture by saurav sarker
4G EPC architecture by saurav sarkerSaurav Sarker
 
PROJECT REPORT ON Home automation using by Bluetooth
 PROJECT REPORT ON Home automation using by Bluetooth PROJECT REPORT ON Home automation using by Bluetooth
PROJECT REPORT ON Home automation using by BluetoothAakashkumar276
 

La actualidad más candente (20)

Iot based health monitoring system
Iot based health monitoring systemIot based health monitoring system
Iot based health monitoring system
 
Li-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/ReportLi-Fi Audio Transmission Project Documentation/Report
Li-Fi Audio Transmission Project Documentation/Report
 
Zigbee
ZigbeeZigbee
Zigbee
 
Android-based surveillance Robot
Android-based surveillance RobotAndroid-based surveillance Robot
Android-based surveillance Robot
 
bluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinhabluetooth controlled home automation using arduino by shubham sinha
bluetooth controlled home automation using arduino by shubham sinha
 
02 optical fiber-waveguides
02 optical fiber-waveguides02 optical fiber-waveguides
02 optical fiber-waveguides
 
Project Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using AndroidProject Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using Android
 
rs-232
rs-232rs-232
rs-232
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth Technology
 
Zigbee Presentation
Zigbee PresentationZigbee Presentation
Zigbee Presentation
 
Automatic door using arduino
Automatic door using arduinoAutomatic door using arduino
Automatic door using arduino
 
Dancing led's
Dancing led'sDancing led's
Dancing led's
 
The Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFiThe Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFi
 
zigbee full ppt
zigbee full pptzigbee full ppt
zigbee full ppt
 
Data Center Networks
Data Center NetworksData Center Networks
Data Center Networks
 
Android Based Home Automation Control
Android Based Home Automation ControlAndroid Based Home Automation Control
Android Based Home Automation Control
 
CSGR(cluster switch gateway routing)
CSGR(cluster switch gateway routing)CSGR(cluster switch gateway routing)
CSGR(cluster switch gateway routing)
 
Monitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSMMonitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSM
 
4G EPC architecture by saurav sarker
4G EPC architecture by saurav sarker4G EPC architecture by saurav sarker
4G EPC architecture by saurav sarker
 
PROJECT REPORT ON Home automation using by Bluetooth
 PROJECT REPORT ON Home automation using by Bluetooth PROJECT REPORT ON Home automation using by Bluetooth
PROJECT REPORT ON Home automation using by Bluetooth
 

Destacado

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
 

Destacado (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
 

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

Similar 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
 
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
 

Último

UiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPathCommunity
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfAijun Zhang
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfDaniel Santiago Silva Capera
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Brian Pichman
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureEric D. Schabell
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?IES VE
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding TeamAdam Moalla
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...Aggregage
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-pyJamie (Taka) Wang
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesMd Hossain Ali
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Websitedgelyza
 

Último (20)

20150722 - AGV
20150722 - AGV20150722 - AGV
20150722 - AGV
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
UiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation Developers
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdf
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability Adventure
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-py
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
 

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