background image

If that worked, then your XBees are configured to talk to each other! If not, 
check out the troubleshooting page.

That your XBees can talk to each other out of the box is no real surprise. 
They’re all configured to, by default, be on the same network with the same 
addresses. That might be OK, but what if your neighbor is running an 
XBee-based robot control network, while you’re trying to automate your 
house? Every time they try to roll a bot forward, your garage door might 
open! To be safe, you should configure your XBees to operate on a unique 
network. Fortunately, that, and most other XBee settings are easy to 
change. On to the next page!

Configuring Networks

As we’ve mentioned, XBees are awesome because they’re highly – and 
easily – configurable. Most of the XBee configuration settings come down 
to controlling which other XBees it can talk to. On this page, we’ll show you 
how to configure three of the most important XBee settings there are: PAN 
ID, MY address, and destination address.

There are a few levels to XBee networks. First, there’s the 

channel

. This 

controls the frequency band that your XBee communicates over. Most 
XBee’s operate on the 2.4GHz 802.15.4 band, and the channel further 
calibrates the operating frequency within that band. You can usually leave 
the channel setting alone, or at least make sure every XBee you want to 
have on the same network operates on the same channel.

The next level of an XBee network is the 

personal area network ID (PAN 

ID)

. The network ID is some hexadecimal value between 0 and 0xFFFF. 

XBees can only communicate with each other if they have the same 
network ID. There being 65536 possible ID’s, there’s a very small chance 
that your neighbor will be operating on the same network (as long as you 
change it from the default!).

Finally there are MY and destination addresses. Each XBee in a network 
should be assigned a 16-bit address (again between 0 and 0xFFFF), which 
is referred to as 

MY address

, or the “source” address. Another setting, the 

destination address

, determines which source address an XBee can send 

data to. For one XBee to be able to send data to another, it must have the 
same destination address as the other XBee’s source.

For example, if XBee 1 has a MY address of 0x1234, and XBee 2 has an 
equivalent destination address of 0x1234, then XBee 2 can send data to 
XBee 1. But if XBee 2 has a MY address of 0x5201, and XBee 1 has a 

Page 9 of 16

Содержание Explorer Dongle

Страница 1: ...networks with dozens of XBees or just a pair swapping data You can use them to remotely control your robot or arrange them all over your house to monitor temperatures or lighting conditions in every r...

Страница 2: ...omputer with X CTU installed The latest version of X CTU is available for both Mac and Windows Suggested Reading This tutorial builds on some lower level electronics concepts If you re not familiar wi...

Страница 3: ...rd compatible headers So if you want to make use of the XBee s extended functionality you can solder some header pins into those or even just solder some wire XBee Explorer USB Dongle The XBee Explore...

Страница 4: ...ed to your computer it probably won t be your last there is some driver installation to get out of the way We ve written a tutorial detailing How to Install FTDI Drivers tutorial So go ahead and plug...

Страница 5: ...e headers don t fit your purpose you can alternatively solder in female headers to plug jumper wires into or even just bare wire Just make sure you don t solder anything into the top side of the board...

Страница 6: ...window also allows you to specify more specific serial characteristics like baud rate data bits and stop bits Assuming this is the first time you ve used your XBee you can leave those settings alone S...

Страница 7: ...et up You can certainly perform this test with both XBees connected to the same computer as well just make sure you select the correct port number when you re adding the second XBee If you add a secon...

Страница 8: ...ted to If you have two XBees connected to your computer you can switch between each radio s console by selecting the device on the left First open a serial connection on each device by clicking the co...

Страница 9: ...Bee communicates over Most XBee s operate on the 2 4GHz 802 15 4 band and the channel further calibrates the operating frequency within that band You can usually leave the channel setting alone or at...

Страница 10: ...lue like 894B Type your 16 bit network ID into the white text box next to PAN ID MY Address MY Your next job is to create addresses for each XBee in your network These values should be unique to each...

Страница 11: ...rom one XBee to the other via the console As long as the addresses and PAN ID s match up you should have the same success as last time While it may seem like a lot of work to get right back to where y...

Страница 12: ...e is hiding it s because the baud rate has been altered A quick fix for this is to select all possible baud rates in the discovery window then click Finish The discovery process works a lot like the a...

Страница 13: ...reset your XBee If your Explorer has a reset button simply press it when prompted otherwise see the Reset section below During recovery if XCTU can find your XBee it will It ll also update the firmwa...

Страница 14: ...er settings should all be compatible Try communicating over the console again Resetting Old Pre Reset Button Explorers When it s having trouble communicating with an XBee XCTU may present you with a n...

Страница 15: ...vantage of the XBee s unique abilities check out this guide XBee Wireless Class Materials Check out our teaching materials for the XBee class we lead every once in a while Going Further With XBee and...

Страница 16: ...ot is our popular Arduino based robot platform Once you get it rolling you can take it a step further by controlling it with an XBee Page 16 of 16 6 24 2015 https learn sparkfun com tutorials explorin...

Отзывы: