Digi Xbee Radio Signals
This guide explains how to set up two Digi Xbee radio modules to send and receive messages, both using the Digi XCTU software and with a simple Python script.
1. Install Digi XCTU
Digi XCTU is the official configuration and testing software for Digi Xbee radios.
- Download XCTU: https://hub.digi.com/support/products/xctu/
- Install it on both computers that will have Xbee modules plugged in.
2. Connect Xbee Modules
- Plug each Xbee radio module into its USB adapter or development board.
- Connect one module to Computer A and the other to Computer B.
- Launch XCTU on both computers.
- Add the Xbee modules to XCTU by clicking Discover Devices.
- Verify both modules are detected and they have each others addresses.
- You can change the end addresses under the Configuration tab if needed.
3. Sending Messages in XCTU
- Open the Console view in XCTU on both computers.
- Click Open on both consoles.
- Type a message in the console on Computer A and press Send.
The message should appear on Computer B’s console. - Try sending messages back and forth to confirm connectivity.
4. Sending Messages with Python
We can also send messages programmatically using a Python script. This is useful for automation or integrating with other software.
Steps:
- Clone the Telemetry repository
-
On both computers, install dependencies:
```bash pip install -r requirements.txt
- Run python .\xbee_chat.py
- You should now be able to send messages between two computers
- Try making your own script now!