XBee Communication

Experiments & prototyping with the Arduino.
rwblinn
Site Admin
Posts: 220
Joined: 07 Oct 2017, 12:16

XBee Communication

Postby rwblinn » 08 Oct 2017, 18:40

Example of XBee Communication.

Recommended Reference about XBee:
Homepage: http://www.digi.com
XBee & RF Solutions: http://www.digi.com/products/xbee-rf-solutions
XBee Product Details: www.digi.com/lp/xbee or www.digi.com/support/productdetail?pid= ... umentation
XBee Example getting starting guide - Chat: http://examples.digi.com/get-started/ba ... gbee-chat/

B4J Samples
Communication between Android and Raspberry Pi
https://www.b4x.com/android/forum/threa ... 4/#content
Communication between Arduino and PC
https://www.b4x.com/android/forum/threa ... 362/page-5

To set the XBee up, use the DIGI software XCTU:
http://www.digi.com/products/xbee-rf-so ... tware/xctu

Example Network
Communication between an Arduino and PC using XBees.
The XBee connected to the Arduino via the XBee Shield is configured as Coordinator.
(Configure this in XCTU, Port like COM4 as recognised by discovering XBees).

The XBee connected to the PC via the XBee Explorer USB is configured as Router.
(Configure this in XCTU, Port like COM5 as recognised by discovering XBees).

The communication mode is AT.

Arduino Uploading Programs (Sketches) IMPORTANT
USB Mode
To be able to upload, the XBee must be in USB mode.
This is done by setting the jumpers to the outer side of the shield.
Unplug the USB cable or Power Supply prior changing the jumpers.
The software can be uploaded via the Arduino IDE or B4R.

XBee Mode
After uploading the software, take of the Arduino Power, change the jumpers to XBee mode (towards the inner side of the shield), and power up again.
The XBee is ready. The red LED is flasing.

Download Source Code

ToDo
• Experiment is completed.

Version
20160422

Return to “Arduino”

Who is online

Users browsing this forum: No registered users and 1 guest