Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

XCTU Tutorial

Introduction

XCTU is a piece of software developed by DIGI Inc. to configure and test their Radio Frequency (RF) modules, such as the XBee series, through a graphical user interface. This section is a step-by-step tutorial detailing how to navigate the program and use it to configure XBee modules.

Step-by-Step Tutorial

Step 1: Before we begin

  1. Collect the following:

    • two XBee Modules

    • two XBee USB Explorer boards

    • two USB-A to USB-mini cables

    • a PC or laptop running Windows 10 or higher

  2. XCTU comes installed on the PCs in the Tellegen Hall. If you want to install it on your laptop, you can download XCTU here.

Intro screen of XCTU

Figure 1:Intro screen of XCTU

Step 2: Discover Devices

  1. Mount each XBee module on an XBee USB Explorer board, and connect both boards to your PC via USB.

  2. Launch XCTU. You should be greeted by the window shown in Fig. 1.

  3. Click on Discover devices to let XCTU detect the connected XBee modules.

  1. This window shows a list of serial ports. Select all ports to scan them for XBee modules. The ports on your computer should also start with COM but may end in different numbers.

  2. Press Next >.

  1. Check if the settings on your screen correspond to the settings in the Figure above. If not, copy them over.

  2. Press Next >.

  1. Wait for XCTU to finish scanning for radio modules.

  1. If all went well, you should see two modules in this window. Select both and press Add selected devices.

Step 3: Configuring the Devices

The XBee modules should now be listed under the Radio Modules pane of the main window. Click on the top listed module. You should see a window similar to Fig. 6.

Screenshot of XCTU with the device config page opened

Figure 6:Screenshot of XCTU with the device config page opened

To make# both modules talk to each other, configure both modules as follows. Note that all settings use hexadecimal notation.

To distinguish each individual module in a network, each module is given a unique number called the “address.” Given a transmitted message, the “source address” is the address of the module that transmitted the message. The “destination address” is the address of the intended recipient. XBee modules can have a 64-bit or a 16-bit (source) address:

To configure the modules to use 64-bit addresses:

To configure the modules to use 16-bit addresses:

Save the configuration by pressing the Write icon, the green triangles on the right of each setting should turn blue. Both devices are now configured to communicate.

Step 4: Testing the Communication

  1. Click the Consoles Working Mode icon in the top left corner of the program (or press Alt + C). This should result in a window similar to the one shown in Fig. 7. This window allows you to send packets of data between connected modules.

  2. In the top left corner of the terminal window you can see an Open icon. Click the icon to open a connection to the XBee module. Repeat these steps for the other device.

The Console Working Mode of XCTU

Figure 7:The Console Working Mode of XCTU

  1. Click the + icon on the right of the Send packets pane. The window shown in Fig. 8 should appear.

  2. Specify either a text message (tab ASCII) or a string of hexadecimal numbers (tab HEX).

  3. Click Add packet.

  4. Select your packet in the Select packets pane, and click Send selected packet. The contents of your packet should appear in blue in the Console log, as shown in Fig. 9.

  5. Open the Console Working Mode tab of the receiving module. The sent message should appear in its Console log in red.

  6. Send a different packet back to test the wireless connection in the other direction.

Screenshot of the packet definition dialog

Figure 8:Screenshot of the packet definition dialog

Screenshot of the terminal window after sending and receiving packets

Figure 9:Screenshot of the terminal window after sending and receiving packets