After installing the Android 4.3 on Nexus-4, one can write the Bluetooth Low Energy (BLE) programs on Android platform. As still no official samples are available from LG/Google on the SDK samples, I tried to dig through available the Java-docs for new SDK and write an Android-App for scanning all BLE devices available in vicinity.
To use this application, we need following:
I have TI's CC2540DK-MINI development kit and NordicSemi's nRF51822 Development kit. TI's kit comes with a KeyFrob and USB-based-BLE-devices and USB-based firmware loader. For current project, I am using TI's kit's KeyFrob as my BLE device (that I am scanning from Android phone).
I have loaded the project code to the project site.
You can try the same application using the Android application download link
Here is screen shot
To use this application, we need following:
- Any Android with 4.3 installed and have BLE HW support ( that means the mobile phone should support Bluetooth 4.0)
- For getting list of scanned devices, we have two options:
- Have real BLE devices (like BLE dongles, chips, SoC, etc)
- We need to have a firmware image that allows us to start the discoverability on the device.
- Have another Android 4.3 phone with BLE enabled and discovery enabled
I have TI's CC2540DK-MINI development kit and NordicSemi's nRF51822 Development kit. TI's kit comes with a KeyFrob and USB-based-BLE-devices and USB-based firmware loader. For current project, I am using TI's kit's KeyFrob as my BLE device (that I am scanning from Android phone).
I have loaded the project code to the project site.
You can try the same application using the Android application download link
Here is screen shot
Excellent. Will try it on a on a Galaxy S4 with Android 4.3 tomorrow.
ReplyDeleteBut keep in mind that Android phones might not reply to BLE-scanning. If you have BLE devices and are discoverable, that is more preferable. Today I tried with iPhone-5 today, can't disvover it (even though that iPhone was made discoverable). Will do more trials and keep posted here
ReplyDeleteNice, on your comment about trying on an iPhone-5, I presume you used the sample application that makes the iPhone act as a BLE device, because turning ON bluetooth in Settings does not make it a BLE beacon.
ReplyDeleteWorks fine on my S4/Android 4.3
ReplyDelete@MohanDoss
ReplyDeleteThanks for your comment. Most probably all smart phones may/maynot respond BLE-scanning requests. I will try the BLE-scanning for HTC-One today.
@Jomar,
Thanks for trying on S4/Android 4.3. I will keep updating this app over the coming weeks for more on GATT/etc.
Thanks for the excellent information about android apps.the setting on bluetooth i really want to know about that.Thanks for sharing this valuable post.
ReplyDeleteandroid apps
I can't get enough apps, I'm always downloading the newest ones and experimenting with making my own. I've had an idea for an app in my head for the longest time but I had no idea where to even start. I am very inexperienced in android application development, so I've been researching online what the best methods are. would you use a mobile based social network, where you meet up with strangers who have something in common with you and make connections?
ReplyDeleteI installed JB 4.3 on my Nexus 10, and patched with the BLE enabler.
ReplyDeletehttp://forum.xda-developers.com/showthread.php?t=2387107
This works, I am testing with a TI BLE Sensortag and the nRF51822-EK.
HI Mahadev,
ReplyDeleteDo you have any luck scanning the ios device.. Alos please check the below link which talks something similar to this..
https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=58725#makechanges
Hi Mahadevan,
ReplyDeleteWe are an Australian company. Just wondering how could we get in touch with you reg an interesting project with BLE. You can write to us sensar [ at ] gmail dot com. Thanks in advance.. Senti.
Can you give BLE android project?
ReplyDeletedo reference!
thanks! from Taiwan!
my email is komlllcf@hotmail.com
your link is OK,but apk install error!
Can you please send project code for reference
ReplyDeleteMy email id is saurabhathavale02@gmail.com
I have just downloaded your app and installed on my nexus 4 phone But when i click on scan device it does not scan another nexus 4 phone.
ReplyDeletehi Mahadevan,
ReplyDeleteCan u able end source code to my mail id srinivas4a2@gmail.com
Hi,
ReplyDeleteRight now I am going to do my masters project which is related with ble scanning and It would be very helpful if you can send me your source code. I now it is private but I an stuck that is why asking you if you could help me.
My email is jgarach9@gmail.com
You can use this app for scanning BLE Devices.
DeleteHere is Link :: https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner
i m not able to get any device .
ReplyDeletethere is no device available in ble device list.
i m using samsung s3 with 4.3 and htc one with 4.3.
This comment has been removed by the author.
ReplyDeleteIs there a way to get the source code for this? would love to have this as as template.
ReplyDelete
ReplyDeletevideocon Recharge Rs.83 ,get Talktime Rs. 63 & 10 Local V2V Mins. Mins Valid for 28 days.