This demo application demonstrates to user on how to use transparent service of Bluetooth Low Energy (BLE). This is a custom/user defined profile of BLE. Application sends the data over BLE to mobile and vice-versa.
The demo uses following components:-
- WILC3000 Bluetooth Low Energy controller: It provides the bluetooth enabled devices to connect to it. Exposes HCI interface to the Host bluetooth stack and thereby enables to develop any BLE applications
- BlueZ: A package of complete Bluetooth Protocol Stack and Utilities, it is used to host custom transparent GATT service and handle data transfers between the peers
- Transparent Service Application: The transparent service application which incorporates the GATT server and its characteristics read/write operations
Demo setup block diagram:-
- Once the board is booted, log into the console
- Enter below command to start the BLE Transparent Service profile functionality:
./Start_BT.sh 2
- User will observe following console output:
- In smartphone mobile, download the “Microchip Bluetooth Data” application from play store (Tested with Android OS).
- Turn-On Smartphone Bluetooth.
- Goto “Microchip Bluetooth Data” application.
- Start the “BLE UART->BM70” -> “Start Scan”.
- User will observe the device “Bluez x.xx” (where x.xx represents the BlueZ version) in scan list.Select the device for connection.
- Enable Write with response to “ON” and write a text on text box and click on “send” button to send a data to WILC device.
- User can observe received data on UART console.
- To send the data from the WILC, issue the
notify \
from the device console as shown in the below screenshot
- The data from the WILC is displayed on the mobile phone MBD application
- User can transfer file from mobile phone to WILC device using below method.
- In mobile “mchp” folder, place the file user want to transfer.
- Select “choose file” option from APP.
- Select the file user want to transfer.
- The file data will be transferred to WILC and UART console will display the file contents.
- Similarly, there is an option for sending predefined data from mobile phone to WILC device.
- User can enable “timer” menu.
- This feature will keep sending the predefined data to WILC for the defined time duration.