Reader small image

You're reading from  Building Wireless Sensor Networks Using Arduino

Product typeBook
Published inOct 2015
Publisher
ISBN-139781784395582
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
Matthijs Kooijman
Matthijs Kooijman
author image
Matthijs Kooijman

Matthijs Kooijman is an independent embedded software developer who is firmly connected with the maker movement through a local fab lab and his work on the Arduino project. Since his youth, Matthijs has been interested in making things; for example, he built his first television remote control before the age of 10 (using a piece of rope to pull on the volume slider, not a solution that he would choose today). Matthijs has a firm belief in the merits of open source software and enjoys contributing to the software that he uses—both by coding and helping out other users. His work experience is broad—ranging from Web development to Linux driver hacking, from tech support to various forms of wireless networking, but almost always related to open source software in some way.
Read more about Matthijs Kooijman

Right arrow

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

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Wireless Sensor Networks Using Arduino
Published in: Oct 2015Publisher: ISBN-13: 9781784395582

Author (1)

author image
Matthijs Kooijman

Matthijs Kooijman is an independent embedded software developer who is firmly connected with the maker movement through a local fab lab and his work on the Arduino project. Since his youth, Matthijs has been interested in making things; for example, he built his first television remote control before the age of 10 (using a piece of rope to pull on the volume slider, not a solution that he would choose today). Matthijs has a firm belief in the merits of open source software and enjoys contributing to the software that he uses—both by coding and helping out other users. His work experience is broad—ranging from Web development to Linux driver hacking, from tech support to various forms of wireless networking, but almost always related to open source software in some way.
Read more about Matthijs Kooijman