This chapter illustrates how to configure the Bluetooth interface of your ConnectCore device to enable it for Bluetooth Low Energy (BLE) communication, regardless of whether it has a Bluetooth interface or not.

ConnectCore with WiFi+Bluetooth variant

Bluetooth interface of ConnectCore with WiFi+Bluetooth variants is enabled by default. However, the ConnectCore devices also come with an application called the “ConnectCore demo,” which is running and auto-executed at startup. This application, used for demonstration purposes, has control over the Bluetooth interface. So, if you want to develop your own application that communicates with a smartphone via BLE, the first thing you need to do is to stop the “ConnectCore demo” app and disable its auto-execution at startup.

Execute the following commands in a SSH session with the ConnectCore device to do so:

Stop the ConnectCore demo

# systemctl stop connectcore-demo-server

Disable the auto-execution of the ConnectCore demo

# systemctl disable connectcore-demo-server

Now, all you need to do is to write your Python application using the Digi ConnectCore Bluetooth Low Energy Python library and execute it in your ConnectCore device.

ConnectCore without WiFi+Bluetooth variant

If your ConnectCore device does not have WiFi+Bluetooth, you can still communicate with it via BLE by connecting an XBee device to the serial interface and using it as bridge.

The Digi ConnectCore Bluetooth Low Energy Python library handles all the XBee management and configuration process automatically.