How to communicate to BLE HM11 from Android device

Thread Starter

quique123

Joined May 15, 2015
405
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:

http://www.allaboutcircuits.com/projects/how-to-communicate-with-a-custom-ble-using-an-android-app/

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/com.example.android.bluetoothlegatt D/BluetoothGatt: readCharacteristic() - uuid: 00002a00-0000-1000-8000-00805f9b34fb
04-11 16:55:57.879 15504-15517/com.example.android.bluetoothlegatt 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/com.example.android.bluetoothlegatt D/BluetoothGatt: writeCharacteristic() - uuid: 00002a02-0000-1000-8000-00805f9b34fb
04-11 16:56:15.840 15504-15518/com.example.android.bluetoothlegatt 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:

http://www.instructables.com/id/Control-RGB-lights-from-Android-with-Arduino-Bluet/?ALLSTEPS

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.
 
Top