Facebook Pixel
Searching...
English
EnglishEnglish
EspañolSpanish
简体中文Chinese
FrançaisFrench
DeutschGerman
日本語Japanese
PortuguêsPortuguese
ItalianoItalian
한국어Korean
РусскийRussian
NederlandsDutch
العربيةArabic
PolskiPolish
हिन्दीHindi
Tiếng ViệtVietnamese
SvenskaSwedish
ΕλληνικάGreek
TürkçeTurkish
ไทยThai
ČeštinaCzech
RomânăRomanian
MagyarHungarian
УкраїнськаUkrainian
Bahasa IndonesiaIndonesian
DanskDanish
SuomiFinnish
БългарскиBulgarian
עבריתHebrew
NorskNorwegian
HrvatskiCroatian
CatalàCatalan
SlovenčinaSlovak
LietuviųLithuanian
SlovenščinaSlovenian
СрпскиSerbian
EestiEstonian
LatviešuLatvian
فارسیPersian
മലയാളംMalayalam
தமிழ்Tamil
اردوUrdu
Building Wireless Sensor Networks

Building Wireless Sensor Networks

With ZigBee, XBee, Arduino, and Processing
by Robert Faludi 2011 318 pages
3.82
100+ ratings
Listen

Key Takeaways

1. ZigBee: The Wireless Protocol for Low-Power, Mesh Networking

"ZigBee is a standard communications protocol for low-power, wireless mesh networking."

ZigBee's unique features make it ideal for sensor networks and home automation:

  • Low power consumption
  • Self-healing mesh networking
  • Support for up to 65,000 nodes
  • 250 kbps data rate at 2.4 GHz

ZigBee is built on the IEEE 802.15.4 standard and adds routing and networking capabilities. It's designed for applications that require long battery life and secure networking, but don't need high bandwidth. Examples include:

  • Smart energy systems
  • Home automation
  • Industrial control
  • Healthcare monitoring

2. XBee Radios: Configurable Modules for ZigBee Communication

"XBee is a brand of radio that supports a variety of communication protocols, including ZigBee, 802.15.4, and WiFi, among others."

XBee modules offer flexibility and ease of use for ZigBee implementations:

  • Multiple form factors (through-hole, surface mount)
  • Various antenna options (chip, wire, U.FL connector, RPSMA connector)
  • Configurable as Coordinator, Router, or End Device

XBee radios can be configured using:

  • AT commands for simple setups
  • API mode for more complex operations
  • X-CTU software for firmware updates and configuration

These modules integrate easily with microcontrollers like Arduino, making them popular for prototyping and small-scale deployments.

3. Network Topologies: Pair, Star, Mesh, and Cluster Tree

"ZigBee networks can connect together in several different layouts or topologies to give the network its structure."

ZigBee supports multiple topologies to suit various application needs:

  • Pair: Simplest form, just two nodes
  • Star: Central coordinator with multiple end devices
  • Mesh: Routers relay messages, extending network range
  • Cluster Tree: Combination of star and mesh topologies

Each topology has its advantages:

  • Star is simple but limited in range
  • Mesh offers redundancy and self-healing
  • Cluster Tree balances complexity and coverage

The choice of topology depends on factors like physical layout, power requirements, and desired network resilience.

4. Addressing in ZigBee: 64-bit, 16-bit, and Node Identifiers

"Almost every person has an address where he can be reached, usually one that is unique to him. Many people have more than one. We have mailing addresses, email addresses, phone numbers, passport numbers, and the list goes on. Each kind of address or identifier serves a slightly different purpose. It's the same with radios."

ZigBee uses multiple addressing schemes for flexibility and efficiency:

  • 64-bit address: Unique, factory-assigned "serial number"
  • 16-bit address: Network-assigned for efficient routing
  • Node Identifier: Human-readable string for easy identification

Addressing types and their uses:

  1. 64-bit: Guaranteed unique across all ZigBee devices
  2. 16-bit: Dynamically assigned, unique within a network
  3. Node Identifier: Optional, user-assigned name

Understanding these addressing methods is crucial for configuring devices and troubleshooting network issues.

5. AT Commands: Configuring XBee Radios for Communication

"Every AT command starts with the letters "AT," which stands for "attention." The idea is to get the attention of the device, in this case our XBee radio."

AT commands provide a simple interface for configuring XBee radios:

  • Enter command mode with "+++"
  • Use commands like ATID (PAN ID), ATDH/ATDL (destination address)
  • Write settings to non-volatile memory with ATWR

Common AT commands:

  • ATID: Set/read PAN ID
  • ATMY: Read 16-bit network address
  • ATDH/ATDL: Set/read destination address
  • ATNI: Set/read Node Identifier

AT mode is suitable for simple configurations and direct human interaction with the radio.

6. API Mode: Advanced Control and Data Handling

"APIs let one computer application request services from another application in a standard manner."

API mode offers structured data exchange for more complex applications:

  • Allows simultaneous communication with multiple destinations
  • Provides delivery confirmation and remote configuration
  • Enables advanced features like firmware updates and network management

API frame structure:

  1. Start delimiter (0x7E)
  2. Length bytes
  3. Frame-specific data
  4. Checksum

API mode is essential for:

  • Receiving I/O samples from remote devices
  • Managing large networks
  • Integrating XBee radios with computer systems

7. Creating Sensor Networks: From Simple to Complex

"Building Wireless Sensor Networks is an essential guide for anyone interested in wireless communications for sensor networks, home networking, or device hacking."

Sensor networks can be built incrementally, starting with simple projects:

  • Basic paired communication (e.g., wireless doorbell)
  • Multi-node temperature sensing network
  • Home automation systems

Key components for sensor networks:

  • XBee radios for wireless communication
  • Sensors (temperature, light, motion, etc.)
  • Microcontrollers (e.g., Arduino) for local processing
  • Power sources (batteries, solar panels)

As networks grow, consider:

  • Scalability of addressing and routing
  • Power management for battery-operated nodes
  • Data aggregation and visualization techniques

8. Sleep Mode: Extending Battery Life in ZigBee Networks

"Going wireless often means cutting the electric cord. Projects that are mobile or remotely located frequently use batteries or another constrained power source that demands economizing on energy."

Sleep mode dramatically extends battery life in ZigBee networks:

  • Cyclic sleep: Radio wakes periodically to check for messages
  • Pin sleep: External signal controls sleep state

Sleep mode configuration:

  • ATSM command sets sleep mode
  • ATSP sets sleep period
  • ATST sets time before sleep

Considerations for sleep mode:

  • Parent devices must buffer messages for sleeping children
  • Trade-off between power savings and responsiveness
  • Some nodes (e.g., routers) typically cannot use sleep mode

9. Internet Connectivity: Gateways and the XBee Internet Gateway (XIG)

"The XBee Internet Gateway is a Python program that can be loaded onto any ConnectPort right out of the box. It's an interface that mirrors the interactions humans have in web browsers."

Gateways bridge ZigBee networks to the Internet, enabling:

  • Remote monitoring and control
  • Data aggregation and cloud storage
  • Integration with web services

XBee Internet Gateway (XIG) features:

  • Runs on ConnectPort devices
  • Translates between ZigBee and HTTP protocols
  • Allows XBee networks to interact with web services

Setting up an Internet-connected ZigBee network:

  1. Configure a ConnectPort with XIG
  2. Set up XBee radios to communicate with the gateway
  3. Use simple URL-like commands to interact with web services

10. Data Sharing and Visualization: Bringing Sensor Data to Life

"By putting your data someplace accessible, you'll be able to strut your stuff, share with colleagues, and possibly pipe your information into other projects all over the world."

Sharing sensor data enhances its value through:

  • Collaboration with other researchers or enthusiasts
  • Integration with data visualization tools
  • Contribution to larger data sets or citizen science projects

Popular platforms for sharing sensor data:

  • Pachube (now Xively): Cloud-based service for real-time data
  • ThingSpeak: Open-source platform for IoT applications
  • Custom web applications using frameworks like Processing

Visualization techniques:

  • Real-time graphs and charts
  • Geographic mapping of sensor locations
  • Interactive dashboards for data exploration

By sharing and visualizing data, sensor networks can provide insights and value beyond their immediate application, contributing to a broader understanding of our environment and the Internet of Things ecosystem.

Last updated:

Review Summary

3.82 out of 5
Average of 100+ ratings from Goodreads and Amazon.

Building Wireless Sensor Networks receives mixed reviews. Readers find it a good introduction to XBee and wireless sensor networks, particularly for beginners. The book is praised for its clear explanations and usefulness in educational settings. However, some criticize its focus on basic concepts and lack of depth in advanced topics like API mode. The repetitive nature of certain sections is noted. While some readers appreciate its simplicity, others feel it falls short for those seeking to build complex wireless sensor networks. Overall, it's considered a solid starting point for newcomers to the field.

Your rating:

About the Author

Robert Faludi is an expert in the field of wireless sensor networks and interactive technologies. He has extensive experience in designing and implementing connected devices and Internet of Things (IoT) systems. Faludi is known for his work as a professor at the School of Visual Arts' Products of Design program, where he teaches courses on wireless technologies and connected devices. He has also served as a consultant for various companies, helping them develop innovative IoT solutions. Faludi's expertise extends to XBee radios and ZigBee protocols, which are central to his book on wireless sensor networks. His work bridges the gap between technical knowledge and practical application in the realm of wireless communications.

Download PDF

To save this Building Wireless Sensor Networks summary for later, download the free PDF. You can print it out, or read offline at your convenience.
Download PDF
File size: 1.17 MB     Pages: 12

Download EPUB

To read this Building Wireless Sensor Networks summary on your e-reader device or app, download the free EPUB. The .epub digital book format is ideal for reading ebooks on phones, tablets, and e-readers.
Download EPUB
File size: 3.80 MB     Pages: 8
0:00
-0:00
1x
Dan
Andrew
Michelle
Lauren
Select Speed
1.0×
+
200 words per minute
Create a free account to unlock:
Bookmarks – save your favorite books
History – revisit books later
Ratings – rate books & see your ratings
Unlock unlimited listening
Your first week's on us!
Today: Get Instant Access
Listen to full summaries of 73,530 books. That's 12,000+ hours of audio!
Day 4: Trial Reminder
We'll send you a notification that your trial is ending soon.
Day 7: Your subscription begins
You'll be charged on Dec 10,
cancel anytime before.
Compare Features Free Pro
Read full text summaries
Summaries are free to read for everyone
Listen to summaries
12,000+ hours of audio
Unlimited Bookmarks
Free users are limited to 10
Unlimited History
Free users are limited to 10
What our users say
30,000+ readers
“...I can 10x the number of books I can read...”
“...exceptionally accurate, engaging, and beautifully presented...”
“...better than any amazon review when I'm making a book-buying decision...”
Save 62%
Yearly
$119.88 $44.99/yr
$3.75/mo
Monthly
$9.99/mo
Try Free & Unlock
7 days free, then $44.99/year. Cancel anytime.
Settings
Appearance
Black Friday Sale 🎉
$20 off Lifetime Access
$79.99 $59.99
Upgrade Now →