How to communicate to BLE HM11 from Android device

Discussion in 'The Projects Forum' started by quique123, Apr 12, 2016.

  1. quique123

    Thread Starter Member

    May 15, 2015
    Im interested in re-making ArduDroid project from techitbar for BLE HM11 module.

    So far I've worked with the Android BluetoothLEGatt project. I've managed to connect to the HM11 and read its services and characteristics. I've followed both of these tutorials:

    Which is from AAC of course, but following that tutorial Im unable to make it work exactly how it is stated there, I believe it has to do with my scant knowledge of BLE GATT communication. Nonetheless Ive posted my error in that post in the comments section.

    What I get in the logcat is:

    04-11 16:55:57.820 15504-15504/ D/BluetoothGatt: readCharacteristic() - uuid: 00002a00-0000-1000-8000-00805f9b34fb
    04-11 16:55:57.879 15504-15517/ D/BluetoothGatt: onCharacteristicRead() - Device=74:DA:EA:B2:87:AE UUID=00002a00-0000-1000-8000-00805f9b34fb Status=0
    04-11 16:56:15.767 15504-15504/ D/BluetoothGatt: writeCharacteristic() - uuid: 00002a02-0000-1000-8000-00805f9b34fb
    04-11 16:56:15.840 15504-15518/ D/BluetoothGatt: onCharacteristicWrite() - Device=74:DA:EA:B2:87:AE UUID=00002a02-0000-1000-8000-00805f9b34fb Status=128

    but I dont understand how I can send to the bt module with this.

    I've recently downloaded the code from this tutorial as well:

    Where the code is based on the same BluetoothLEGatt Android project but it has a few modifications for sending data from a Seek.

    I guess my question is, is there a simple tutorial that explains clearly how data is passed from android to the BLE module. I would like to know the structure of the information exchange and components required.