background image

Your next job is to create addresses for each XBee in your network. These values should be unique to each XBee in a network. The MY
address can be any value between 0x0000 and 0xFFFF. Type this address into the text box next to "

MY

 16-bit Source Address".

If you only have two XBees, you can 

assign the first an MY address of 0, and the other an address of 1

.

Note: 

Your XBee's can share the same MY address, they'll both receive the same data if it's broadcasted to that address.

Destination Address (DH & DL)

The destination address defines which XBee your source XBee is talking to. There are actually two values used to set the destination:
destination high (DH) and destination low (DL). You can use that pair of values in one of two ways to set your XBee's mate:

1.  Leave DH set to 0, and set DL to the 

MY address

 of the receiving XBee.

2.  Set DH to the 

Serial Number High (SH)

 and DL to the 

Serial Number Low (SL)

 of your destination XBee.

Either method works, but the former -- setting DH to 0 and DL to the destination's MY address -- is usually easier.

Here's an example for setting up the ID, DH, DL, and MY values for a pair of XBees:

Setting

Acronym XBee Node1 XBee Node 2

Channel

CH

C

C

PAN ID

ID

35FD

35FD

Destination Address High

DH

0

0

Destination Address Low

DL

1

0

16-bit Source Address

MY

0

1

Notice how the only real differences are the DL and MY values, which are flip-flopped on each XBee.

Write Changes

Once you've made your changes to the text field, click the brown pencil icon ( ) to 

write your changes

. The property background

should turn from green to blue, indicating it has been written to a non-default value.

XBee 1's config tab after writing the changes.

Now, just like last time, you can try to send data from 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 you were, using a unique PAN ID and addressing scheme will make your
data transfer more 

secure

 and 

reliable

.

Troubleshooting

If your XBee's are giving you any trouble, here are some common problems and fixes we recommend:

Page 18 of 24

Содержание S1

Страница 1: ...ble low cost bi directional communication at moderate speeds XBee may be the solution for you XBees are hugely popular wireless transceivers for a number of reasons They reflexible they send and recei...

Страница 2: ...ur computer and an XBee They re used to configure your XBee and pass data to and from your computer Depending on which explorer you have you may also need a matchingmini B USB or serial cables At leas...

Страница 3: ...toggling the XBee 3 s reset pin To automate this during startup you can solder a wire between the reset pin and the 3 3V I O pin of a microcontroller Toggling the reset pin with a minimum of 50ns 100n...

Страница 4: ...ou ever need to debug your XBee RX TX RSSI signal strength indicator and a power indicator This board also breaks out each of the XBee s I O pins to a pair of breadboard compatible headers So if you w...

Страница 5: ...r USB Dongle The XBee Explorer Dongle is an extension of the Explorer In fact the only real difference between this and its predecessor is the USB connector The Dongle can be connected directly to you...

Страница 6: ...hren but still shares most of the same features There are RX and TX LEDs reset button break out pins and a voltage regulator One additional feature that the Serial Explorer has is an On Off switch on...

Страница 7: ...ugh current for the XBee you are using Wall Adapter Power Supply 9VDC 650mA TOL 00298 12 Retired Favorited Favorite 23 Wish List Wall Adapter Power Supply 12VDC 600mA TOL 09442 13 Retired Favorited Fa...

Страница 8: ...e next pages How to Install FTDI Drivers June 4 2013 How to install drivers for the FTDI Basic on Windows Mac OS X and Linux Favorited Favorite 8 Basic Assembly Plug In an XBee Time to assemble the XB...

Страница 9: ...O line passing can be found in the XBee s user manual Starting With X CTU X CTU is free software provided by Digi the manufacturer of XBee which we use toconfigure and manage XBees and test XBee netw...

Страница 10: ...dows users should look for the entry that says USB Serial Port and Mac users should look for something like usbserial XXXXXXXX if you re using a USB XBee board If you re using a Serial Explorer instea...

Страница 11: ...shows an XBee Series 1 connected to the XCTU As you can see by scrolling down the right half there area lot of configuration settings available We ll get to some of those later For now though verify t...

Страница 12: ...Series 2 firmware For the scope of this tutorial we will be using the Digi XBee3 802 15 4 TH function set You will then select the firmware version In this case it is2002 When ready click the Update b...

Страница 13: ...gain To test communication between your XBee s you ll need to connect your second XBee to a computer as well That means doing the Add device dance one more time if you have not already If you have ano...

Страница 14: ...ft The configuration values shown are for the highlighted XBee If you re ever unsure which XBee is which try to match up theMAC numbers These numbers are printed on a sticker on the bottom side of you...

Страница 15: ...t s connected 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 click...

Страница 16: ...e Passing For simplicity we will be using a pair of XBee Series 1 or XBee Series 3 configured with the 802 15 4 protocol set in transparent mode to replace a wired serial UART connection Transparent M...

Страница 17: ...Bee 2 can send data to XBee 1 But if XBee 2 has a MY address of 0x5201 and XBee 1 has a destination address of 0x5200 then XBee 1 cannot send data to XBee 2 In this case only one way communication is...

Страница 18: ...to 0 and DL to the destination s MY address is usually easier Here s an example for setting up the ID DH DL and MY values for a pair of XBees Setting Acronym XBee Node1 XBee Node 2 Channel CH C C PAN...

Страница 19: ...e Add Device process is being followed by a window like this There are two options we recommend discovery or recovery Discovery The Discover radio devices tool is an extension of Add devices Open the...

Страница 20: ...er discovery process Click every checkbox and you might be waiting upwards of an hour for your XBee to be discovered permutations If you re not having any luck with discovery the next step is recovery...

Страница 21: ...each other try resetting them both to the default values In the config tab click the Load default firmware settings icon not sure how to describe that icon Thenclick Yes to confirm that you want to re...

Страница 22: ...Short them together for about a second and then remove the wire If you ve done it within the time window provided by XCTU it should proceed to the next step If not give it another try it takes some p...

Страница 23: ...no Favorited Favorite 10 What are you going to make Need some inspiration Check out these related tutorials XBee WiFi Hookup Guide Take the next step with XBees using the XBee WiFi These modules allow...

Страница 24: ...ee RPi November 9 2017 Favorited Favorite 0 Enginursday Prototype Capacitive Touch Dance Floor with a Teensy and XBees August 30 2018 Favorited Favorite 2 learn sparkfun com CC BY SA 3 0 SparkFun Elec...

Отзывы: