XBee S1 Скачать руководство пользователя страница 17

channel.

PAN ID (ID)

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!).

Addresss (MY, DH, DL)

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 destination address of 0x5200, then XBee 1 cannot send
data to XBee 2. In this case, only one-way communication is enabled between the two XBee's (only XBee 2 can send data to XBee 1).

We can use X-CTU to easily configure each of those settings. Here's how:

Radio Configuration

After the last page, you should already have at least one XBee connected to X-CTU. If you're still over in the console tab, click back over

to the 

Configuration tab

 -- 

. Take a peak at the very first handful of settings, and you should see some familiar acronyms: CH, ID,

DH, DL, and MY. Beside each of those blocks is a text box -- that's where we'll type in our new settings.

Network ID (ID)

Begin by coming up with a unique network ID number. Think of your favorite number between 0 and 65535, consult your friends and
neighbors to make sure your favorite isn't their favorite, then 

convert it to hexadecimal

. Or if you don't want to put that much effort into it,

use a random value like 

35FD

.

Type your 16-bit network ID into the white text box next to 

PAN ID

.

MY Address (MY)

Page 17 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...

Отзывы: