Digi XBee Spectrum Analyzer Tool in Digi XCTU

Digi XCTU® is a configuration tool that enables developers to test, configure and manage Digi XBee® networks before and after deployment. Developed with a range of easy-to-use tools, such as the Spectrum Analyzer, Digi XCTU simplifies every aspect of building out a wireless network with Digi XBee wireless devices.

Analyzing Spectrum with Digi XCTU

While it is not technically magic, Digi XCTU can reveal the invisible. It features a Spectrum Analyzer tool that can measure energy levels across various radio channels in real time, keeping track with graphs and statistics to help you select the best configuration for your Digi XBee network. Avoiding channels with high interference will make your network more reliable, help prevent data loss and extend battery life. The Spectrum Analyzer is also a powerful troubleshooting tool, to help locate sources of unwanted radio noise. Unless you can see, smell or hear radio, you'll want to use Digi XCTU to analyze what can't be seen. Let's go hands-on with this practical tool.

Parts Required

parts-for-spectrum-analyzer-700x804.png

  • One Digi XBee or XBee 3 module
  • 1 Grove or XBIB evaluation board
  • 1 USB cable
  • A laptop or desktop computer
  • Digi XCTU (free download)

NOTE: These instructions will work with many different models of Digi XBee radios including Zigbee, 802.15.4, DigiMesh, and a variety of sub-GHz Digi XBee devices. The Digi XBee 3 Zigbee Mesh Kit also has everything you need for this project.

Basic Setup

Begin by following the instructions in the Digi XCTU Configuration article to:

  1. Download Digi XCTU.
  2. Connect a Digi XBee 3 to your computer with an XBIB or Grove evaluation board, via USB.
  3. Open Digi XCTU and click Add Device to connect to the Digi XBee 3.

Defaults for Local XBee

Next, revert the locally-connected Digi XBee or Digi XBee 3 to its factory defaults. You can begin this by clicking the radio module in the list on the left. That will load the configuration window to the right. Next:

  1. Select Default and click Yes to confirm. This will load the default factory firmware settings into Digi XCTU.
  2. Select Write to write these default settings to the radio module's firmware.
default-and-then-write.png

NOTE: Spectrum analysis does not require any remote radios. The local radio simply listens to each configured channel to gather data so it never needs to send anything out.

Spectrum Analysis with Digi XBee

  1. Begin by selecting Spectrum Analyzer from the Tools menu.
    spectrum-analyzer-menu-item-selected.png
  2. The Spectrum Analyzer window appears, including Device Selection at the top and spectrum graphs below it.

    spectrum-analyzer-full-screen-blank-700x674-(1).png

  3. In the Device Selection area, select the local radio.
    device-selection-and-config-700x101.png
  4. Use the default configuration as-is for your initial runs. 100 samples at 1 second intervals will provide a reasonable first survey of your local radio environment. Later, you might want to try more samples at a larger interval. For example if you wanted to make a 24-hour analysis to understand how the environment changes over the course of a day, you might pick six-minute intervals by selecting a 60000 ms sampling interval over 1440 samples.
  5. Begin the analysis with the Start spectrum analysis button. Digi XCTU will begin listening to each channel in turn and display the discovered data in real time.
    start-spectrum-button-700x87.png
  6. All the data is displayed in a bar chart. By default all channels are displayed. Uncheck any that don't interest you. The graph shows current levels for each channel, along with the maximum, minimum and average values for the entire analysis. Here's what that looks like at 2.4 GHz with a Digi XBee 3 Zigbee radio module:
    bar-graph-for-2-4ghz-700x192.png
    And here's what it looks like for a Digi XBee-PRO 900HP running at 900 MHz, which uses many additional channels:
    graph-900mhz-1-700x221.png
  7. You can examine the data for each channel by clicking on its bar in the main bar chart. That channel's detail including numeric data will be displayed below. The following is the detail for a channel that is already experiencing a lot of radio energy. The lower bar graph in green shows four bars of noise so it's probably a channel we want to avoid:
    single-channel-close-up-700x522.png

Live Test

These two videos show the entire spectrum analysis process. The first, at 2.4 GHz, shows how the data develops for our analysis in that frequency range. The best channel would probably be 14 and the worst is Channel 4. Our second video shows the same type of analysis in the 900 MHz range. There are many more channels but you'll notice right away that there's far less interference in this range. The reading averages a quiet -90 dBm rather than the noise average of about -60 dBm for 2.4 GHz. Given that 2.4 GHz is where Wi-Fi and Bluetooth reside, this is not at all surprising. Channels in the mid-20s are somewhat noisy but the rest of the spectrum is quiet and ideal for IoT use.

Spectrum Analysis 2.4 GHz

Spectrum Analysis 900 MHz

Summary

The Spectrum Analysis feature provides a fast method for exploring local radio frequencies to determine which channels and ranges have the least noise, and therefore the best performance for your IoT system. Digi's XCTU automatically generates a detailed analysis that can be used to select preferred channels. By moving around your environment while performing analyses, you can help determine possible sources of interference and their timing. By choosing low noise channels, your IoT system receives many benefits. It will transmit data more reliably, form mesh networks more rapidly, extend the effective range of each radio, reduce battery use and eliminate many service calls.

Digi's XCTU Spectrum Analyzer provides yet another essential empirical tool for designing your network. The real-world information generated can help ensure your IoT system runs flawlessly, so you can concentrate on designing your application and maximizing your system's value.
 

>> Keep up with Digi news and announcements by signing up for the Digi International newsletter.


 
Get the Digi XBee Network Assistant Information Sheet
Learn how to streamline deployment of wireless networks