
Bluetooth Low Energy in the XBee devices Enable and configure the BLE interface
Digi XBee Mobile SDK User Guide 7
Enable and configure the BLE interface
On the XBee device, the BLE protocol is disabled by default, so the first thing to do if you want to work
with the BLE interface is to enable it and configure the authentication password. Follow these steps
to do so:
1. Launch XCTU.
2. Add your XBee device to the list of radio modules.
3. Switch to Configuration working mode.
4. Locate the Bluetooth Options settings group and configure the BT Bluetooth Enable option
to Enabled [1].
5. Click the Write settings button from the toolbar.
a. If the Bluetooth authentication is not set dialog appears, click the Configure button on
that dialog. The Configure Bluetooth Authentication dialog appears.
b. If the Bluetooth authentication is not set dialog does not appear, click the Configure
button of the Bluetooth Authentication setting within the Bluetooth Options settings
group. The Configure Bluetooth Authentication dialog appears.
6. Enter the authentication password you want to use to authenticate with the XBee module in
the Password field.
7. Click OK to save the authentication configuration of the XBee module.
Once the BLE interface is enabled, the XBee device starts a GATT service with two characteristics to
communicate with it via BLE. The libraries included with the XBee Mobile SDK contain a set of methods
that abstract the internals of the BLE communication, so you do not need to worry about writing or
reading from characteristics.
Note For more information about the services and characteristics exposed by the GATT server, see
the XBee API BLE Service page of your XBee device's documentation.
Now you are ready to start communicating securely with the XBee device.
Open a secure connection with the XBee device
Aside from enabling the BLE interface, it is mandatory to authenticate and unlock communication with
the XBee device. This authentication process between a mobile application and the XBee device over
BLE is an implementation of the Secure Remote Password (SRP)algorithm. Once the authentication is
completed, all communication between the mobile device and XBee device is encrypted following the
AES-256-CTR specification.
Note For more information about the SRP authentication process, see the BLE Unlock API page of
your XBee device's documentation.
BLE authentication using the XBee Mobile SDK
The libraries included with the XBee Mobile SDK make the authentication and encryption processes
transparent. You only need to provide the BLE authentication password configured in the XBee device
when instantiating an XBee device class. After opening the connection with the XBee device, the
libraries execute the entire authentication process in the background and encrypt/decrypt the data
when communicating with the device.