Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Wireless Sensor Networks Using Arduino

You're reading from   Building Wireless Sensor Networks Using Arduino Leverage the powerful Arduino and XBee platforms to monitor and control your surroundings

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784395582
Length 192 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Matthijs Kooijman Matthijs Kooijman
Author Profile Icon Matthijs Kooijman
Matthijs Kooijman
Arrow right icon
View More author details
Toc

Sending and receiving data

Now that the XBee connectivity is covered, it is time to actually exchange some data wirelessly between your Arduinos. In the previous chapter, you have already seen the API frames involved in transmitting and receiving data through the network. In this section, you will let the Arduino use those API frames to exchange a simple Hello, world! message again. For this, the sender will use the XBee module that you configured as a router, while the receiver will use the coordinator XBee.

Sending data

Remember that sending a message involves a few different API frames:

  • The sender sends a ZigBee Transmit Request API frame to the XBee module, containing the destination address and the message.
  • The receiver receives a ZigBee Receive Packet API frame, containing the sender address and the message. The receiver XBee will also (automatically) send an acknowledgement (ack) back to the sender so the sender knows the transmission was successful.
  • The sender receives a ZigBee Transmit...
You have been reading a chapter from
Building Wireless Sensor Networks Using Arduino
Published in: Oct 2015
Publisher:
ISBN-13: 9781784395582
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime