Fist of all we need the XCTU software, to install the FTDI USB Serial driver and a Windows OS. I recommend to program Xbees in a windows environment.  Then in order to create a simple Personal Area Network (PAN) we will configure the first module as coordinator and the second as router. Choose which device to use as coordinator and router. Here are the different device types defined in the Zigbee network (Please refer to this link for further informations):

  • Coordinator: Start a new personal area network (PAN) by selecting the channel and PAN ID. Allow routers and end devices to join the PAN, transmit and receive RF data transmission and route the data through the mesh network.
  • Router: Transmit and receive RF data transmission, and route data packet through the network
  • End Device – Cannot assist in routing the data transmission but transmit or receive RF data transmission and intended to be battery powered devices.

Set up the coordinator

  1. Plug the first Xbee in the USB Explorer board and connect it to the computer. Go to Device Manager and identify the USB port.

  2. XCTU


  3. Open XCTU, select the correct port and click the Test Query button in the “PC Settings” tab.  A dialogue box should pop up with informations about your device. Note your Modem type.

  4. TestQuery


Errors?

If you get an error, check your connections, and the connection's parameters. Make sure that baudrate = 9600, Flow Control = None, Data bits = 8, Parity = None and Stop bits = 1. Try with the 'Enable Api' option checked before throwing your xbee away.
  • Select the “Modem Configuration” tab. Once here, select the “Read” button. This will bring up the current configuration for the connected XBee. On the top right corner click on “Download new versions” and select the web option. Once updated, you can select the last firmware version in the dropdown list.

  • ModemConfig


  • In the function set, select Zigbee Coordinator AT. Now, let’s choose the ID of the network we want to create. In the PAN ID row enter a value, for example 1000.

  • If you scroll down to the “Addressing” folder you will find the serial number of your module split in two. The High Serial (SH) usually 13A200 and the Low Serial (SL). You could specify as Destination Address the one of your second Xbee. The default values will establish a broadcast communication. So, easy game! Leave the default values.

  • addressCoord


  • Ok, we are ready to write these configuration to the module. Click the “write” button, this will update and configure the XBee.

  • Router

    Reference