Configure the XBee devices

XBee B will send the digital value from the button to XBee A every time the value changes (that is, when the button is pressed or released).

Set the destination address (DH + DL) of the sender (XBee B) to the MAC address (SH + SL) of the receiver (XBee A). Additionally, configure the pin where the button is connected (DIO4/AD4) as a digital input, and set the DIO change detect (IC) to monitor the same pin.

  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:
    ParamXBee AXBee BEffect

    CH

    B

    B

    Defines the frequency of communication. This parameter must be the same for all radios on your network.

    ID

    2015

    2015

    Defines the network a radio will connect to. This parameter 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 A

    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.

    NIXBEE_AXBEE_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.

    AP

    API enabled [1]

    API enabled [1]

    Enables API mode.

    D4

    DI [3]

    Sets the DIO4/AD4 pin as digital input in XBee B. This pin is connected to a button.

    IC

    10

    Configures XBee B to transmit an IO sample when pin DIO4 (where the button is connected) changes.

    00010000 (binary) = 10 (hexadecimal)

    For further information on how to configure this parameter to monitor the pins, see Ob tain data from sensor topic.

  3. 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: