Configure the XBee modules

To make a pin pairing, you will configure the pin of the XBee where the button is connected as digital input, and configure the pin of the XBee where the LED is connected as digital output. You will also need to configure the first XBee to send a notification to the other XBee when the button changes state.

When you press the button of the first XBee, the LED of the other will light.

  1. Restore the default settings of all XBee modules with the Load default firmware settings button at the top of the Radio Configuration section.

  2. Use XCTU to configure the following parameters:

Parameter

XBee A

XBee B

Effect

CH

B

B

Defines the frequency to use to communicate. This must be the same for all radios on your network.

ID

2015

2015

Defines the network that a radio will attach to. This must be the same for all radios on your network.

DH

0013A200

Defines the destination address to transmit the data to. The value of this setting should be the Serial Number High (SH) of the other module.

DL

SL of XBee B

Defines the destination address to transmit the data to. The value of this setting should be the Serial Number Low (SL) of the other module.

MY

FFFF

FFFF

Enables the reception of packets with 64-bit addresses.

NI

 

XBEE_A

 

XBEE_B

Defines the node identifier, a human-friendly name for the module.

The default NI value is a blank space. Make sure to delete the space when you change the value.

D4

DI [3]

DO High [5]

Configures the pins: Digital Input in XBee A (button) and Digital Output in XBee B (LED).

IC

10

Configures the XBee A to transmit an Input/Output (I/O) packet when pin DIO4 changes.

IA

SH + SL of XBee A

Defines the address of the transmitting module.

Note The dash () in the table means to keep the default value. Do not change the default value.

  1. Write the settings of all XBee modules with the Write radio settings button at the top of the Radio Configuration section.

The following video demonstrates how to configure the modules with XCTU:

Try it

Press the button where XBee A is connected. If everything is set up properly, the LED of the XBee B board will light.