Communicate with Therapist Bot Using Digi XBee Cellular and XCTU
- Assemble the Parts
- Communicate with ELIZA
- Your First Counselling Session
- Accessing Other Servers
XCTU is a free multi-platform application designed to enable developers to interact with Digi RF modules through a simple-to-use graphical interface. By using XCTU and the Digi XBee cellular, you can connect to many servers such as the ELIZA Therapist Bot, Echo, and Daytime.
In XCTU you can directly communicate with radio modules using the AT console. All the data you send through the serial interface is queued for transmission by the module, and all the data received by the module is sent through the serial interface. To communicate between devices in the console, you can use the AT Console Log which displays all sent (blue) and received (red) data characters.
Using the Digi Xbee Cellular Modem and XCTU, you can chat with the ELIZA Therapist Bot. ELIZA is an artificial intelligence (AI) bot that emulates a therapist and can perform simple conversations. Every conversation with ELIZA can be viewed through the XCTU Console Log. In this example, we will provide step by step instructions on how to connect to the ELIZA server.
2) Assemble the Parts
3) Communicate with ELIZA
Follow the instructions below to connect your XBee Cellular module with the ELIZA server.
Note: The following instructions assume that you have downloaded XCTU and your XBee Cellular device is setup correctly. To download XCTU click here. For instructions on setting up your XBee Cellular device click here.
- Open XCTU and click the Configuration Working Mode button.
- Select a device from the Radio Modules list. XCTU displays the current firmware settings for that device.
- On the configuration toolbar, click the Default button to load the default values established by the firmware, and click Yes to confirm.
- Factory settings are loaded but not written to the device. To write them, click the Write button on the toolbar.
- To switch to TCP communication, in the IP field, select 1 and click the Write button .
- To enter the destination address of the ELIZA Therapist Bot, in the DL field, type 184.108.40.206 and click the Write button.
- To enter the destination IP port number, in the DE field, type 2328 and click the Write button.
- Click the Consoles Working Mode button on the toolbar to open a serial console to the device. For instructions on using the console click here.
- Click the Open button to open a serial connection to the device.
4)Your First Counselling Session
You’re all ready to talk to Eliza! Type in the left pane of the Console Log and Eliza will quickly send a response. See the example conversation below.
5)Accessing Other Servers
To learn more about connecting to servers using XCTU and Digi XBee Cellular click here.