Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/w3348378/domains/sjriek.nl/public_html/wp-includes/class-wp-hook.php on line 298

Xbee

The Maxstream Xbee modules provide the ability to easily create an IEEE 802.15.4 compliant zigbee network, without beeing concerned about the communication protocol.

Configuring For Peer to Peer communication (serial transparant):

– Connect the Xbee module you want to configure to the USB port of the computer.

– Start the X-CTU software and select the USB Serial Port of the Xbee module.

– Select the Baud-Rate of the Xbee module, default 9600, but this can be changed so it can be an other value.

xctu-1

– Press “Test/Query” to see if you can connect with your xbee module, if not make sure you selected the correct USB port, also try changing the Baud Rate until it is correct and you get this message.

xctu-modemtest

– Select the “Modem Configuration” tab

– Press the “Read” button, the current configuration of the Xbee module will be loaded into the software, this wil look somehow like this.

xctu-modemconfiguration

– Check that for the modem “XB24” is selected

– Check that the function set is “XBEE 802.15.4”

– Check that you have a recent firmware version “10CD” or ”10A5″

Now remove all current setting in the Xbee module as we start from scratch, by pressing “Show Defaults”.

– Set or leave the “Channel” number (should be the same value for both modules)

– Set or leave the “PAN ID”(should be the same value for both modules)

– Set “Desination Address High” to 0.

We connect two xbee modules, this one we give number 1, the other number 2.

– Set the “Destination Address Low” to the other module number, so to number 2.

– Set the “MY Address” to my own number, so to number 1.

If You Press the “Write” Button all settings are saved to this Xbee module.

– Configure the second Xbee module as described above, but change the “Destination Address Low” to 1 and the “MY address” to 2.

You now configured Two Xbee modules for Peer to Peer communication @ 9600 BPS

If you want to be able to transmit at a hight datarate you can change the “Interface Data Rate” to a desirable value e.g. 57600 bps, but make sure you do it on both modules. Also be aware that if you change the baudrate you have to change it accordingly in the X-CTU PC-Settings tab to be able to communicate to the module after saving the settings.

If your Xbee Stopped working, or you cannot connect to it anymore you can reset it to factory defaults, asdescribedin this post:

1. Take the module out of the interface board.
2. Connect the interface board to the computer.
3. Open X-CTU
4. Go to “Modem Configuration”
5. Put a check in the “Always update firmware” box
6. Select proper modem from drop down menu,
7. Select proper function set and firmware version
from drop down menus.
8. Click on the “Write” button. After a few seconds of
trying to read the modem, you will get an Info box
that says Action Needed. At this point, CAREFULLY
insert the module into the interface board.
9. You may get the info box again a short while after,
just use the reset button on the interface board.

It can take a couple of tries but it worked

Usefull Links:

Upgrading Firmware for XBee Radios

XCTU – Software

FTDI USB-Serial Driver

Xbee-api-library-for-processing

XBee_program_Arduino_wireless