Skip to content
Tasos Sangiotis edited this page Jan 27, 2014 · 6 revisions

Introduction

In order for our XBee modules to work well together, we first need to configure them properly. As discussed in About Jarvis, we're using 3 XBee modules. One is connected to the computer, one to the door lock and RFID reader, and one lies inside our remote. We assume you already have some experience with XBee configuration. If not, the XBee datasheet is an excellent source of documentation, and there is also a great guide at arduino.cc (specifically, the Addressing and Configuration sections)

Addressing

First of all, we need to give a unique address to each XBee. We'll use 1 for the door controller, 2 for the computer and 3 for the remote.

The remote's destination address (DL) will be set to 2, so its messages will only be sent to the computer, the computer's destination address must be set to 1, so its messages are only sent to the door controller, and the door's destination address is set to 2, so its messages are only sent to the computer (check About Jarvis to get a better view of each module's destination address).

RFID Reading

After setting the address and destination for the computer and the door controller, no extra configuration is required for the RFID reading to work.

Remote Button Press

The remote button uses the XBee's I/O line status messages to notify the computer that the button is pressed. As long as the XBee inside the remote is powered, it will periodically transmit a 'MY pin is HIGH' message to the computer, more or less twice a second. To do that, we need to enable the I/O line status messages in the remote xbee and the computer. We use pin D1 for that, so we have to make the necessary adjustments for that.

Non Default Values:

Setting Value
DL 2
MY 3
SC 1FF
R0 10
D1 3
IC FF

To save the commands to the XBee if programming from a serial monitor send:

ATWR
Clone this wiki locally