BleTransparentService


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:-

  1. WINC3400 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
  2. 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
  3. Transparent Service Application: The transparent service application which incorporates the GATT server and its characteristics read/write operations

Demo setup block diagram:-
wlsom_trans_server_setup.jpg

  1. Once the board is booted, log into the console
  2. Enter below command to start the BLE Transparent Service profile functionality:
    ./Start_BT.sh 2
  3. User will observe following console output:
    trans_service_output.jpg
  4. In smartphone mobile, download the “Microchip Bluetooth Data” application from play store (Tested with Android OS).
  5. Turn-On Smartphone Bluetooth.
  6. Goto “Microchip Bluetooth Data” application.
  7. Start the “BLE UART->BM70” -> “Start Scan”.
  8. User will observe the device “Bluez x.xx” (where x.xx represents the BlueZ version) in scan list.Select the device for connection.
    device_scan_list.jpg
  9. 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.
    trans_serv_app_tx.jpg
  10. User can observe received data on UART console.
    trans_data_rx.jpg
  11. To send the data from the WILC, issue the notify \ from the device console as shown in the below screenshot
    trans_serv_data_tx.jpg
  12. The data from the WILC is displayed on the mobile phone MBD application
    trans_serv_app_rx.jpg
  13. User can transfer file from mobile phone to WILC device using below method.
    1. In mobile “mchp” folder, place the file user want to transfer.
    2. Select “choose file” option from APP.
    3. Select the file user want to transfer.
      transparent_service_filetransfer.jpg
    4. The file data will be transferred to WILC and UART console will display the file contents.
  14. Similarly, there is an option for sending predefined data from mobile phone to WILC device.
    1. User can enable “timer” menu.
      transparent_service_datatransfer.jpg
    2. This feature will keep sending the predefined data to WILC for the defined time duration.