Bluetooth ble 4.0 and Android, I'm lost!

I feel I've mastered using hc-05 with arduino and successfully able to make an Android application to connect and communicate via SPP to the arduino connected hc-05. So I purchased a hm-10, BLE 4.0 and it's pretty much a completely different device, and the command set isn't the same either. To connect the hm-10 to Arduino is the same basic 4 wires, and the serial port communications are the same. My trouble is on the Android side of this whole thing, since I must use a ble 4.0 protocol.

Unfortunately, I feel I have saturated my internet searching and having big trouble finding WORKING examples in Android Studio to successfully connect and send/receive data to this hm-10. I can use a test application from the play store that I can't find the website or source code - or else I would just learn from that application. Many of the searches end up with lengthy threads and discussions about re-burning firmware on hm-10 (and I don't see the point in burning firmware just for an update, if my hm-10 can actually connect & communicate to a working application already).

Can anyone send me a link or point me in a direction, other than obvious google searching? Has anyone else gone through this struggle and comment please?

BLE is a very different beast to BT 2/SPP. Start with searching for intros to BLE rather than how tos for Android Studio. I cannot find the links but when I first started I found some really nice videos on youtube that explained how BLE worked. Without knowing this you will have a hard time implementing BLE in an app.

Once you have a basic understanding download the Android/Google samples or search for a library and look at the code in the library.

Hi,

Take a look at GitHub - googlearchive/android-BluetoothLeGatt: Migrated: . This is the most relevant example. It helped me a lot to understand what is going on. Be prepared for it to take some time. This is complex territory.

Good luck,
Arik.

I actually made some progress and found some helpful links. The problem now appears to be the PERMISSIONS that are required, that post-dates the version of the example bluetooth gatt sample. I really wasn't interested in learning the entire protocol was a huge distraction.

But yea, your right I have to just take my time and read the details.