Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Broadcom BLE SDK (SMART 4.0) in Android 4.X

I am trying to develop a BLE bluetooth (SMART) application for Android.

I managed to download the Broadcom BLE SDK, install through the Android SDK Manager as explained on the web site and download the projects examples.

When I tried to push one of the examples into my tests phones (HTC One S, HTC One X both with Bluetooth BLE feature), I am facing the following issue:

INSTALL_FAILED_MISSING_SHARED_LIBRARY

Is there any possibility to include the broadcom library described in the AndroidManifest.xml file ? <uses-library android:name="com.broadcom.bt.le" android:required="true"/>

Is someone managed to test the broadcom projects examples? And on which phone?

According to this post, a bug has been discovered on Samsung Galaxy S3, but I didn't find any information about HTC products.


UPDATE : What a great news!!!

Last Android version 4.3 (Jelly Bean) now support low-energy Bluetooth Smart accessories.

http://www.android.com/about/jelly-bean/

https://developer.bluetooth.org/Pages/Bluetooth-Android-Developers.aspx

Not sure that every phones will have an update (even the last HTC One M7 for example) but next phones will certainly embed this major release.

like image 985
sdespont Avatar asked Jul 03 '12 13:07

sdespont


2 Answers

The problem is that if your phone doesn't have the .so file installed, this isn't going to help.

And your device will only (as of this writing) have the .so file if Broadcom has blessed the device.

For example, the latest official build (4.0.4) for the reasonably-new Samsung Galaxy Nexus does not.

For those that don't know, there are two different (incompatible) APIs for LOW-ENERGY Bluetooth (BtLE, now apparently called BT Smart). One is from Broadcom, and the other is from Motorola. Unsurprisingly, each only works on a phone that has that vendor's chips in it.

This is a terrible, terrible situation, and Google REALLY needs to get moving on a solution or Android will become totally irrelevant in a little industry known as HEALTHCARE!!!!!

like image 169
idarwin Avatar answered Sep 23 '22 18:09

idarwin


The HTC One X and One S use a Qualcomm Bluetooth chip, not Broadcom. Therefore the Broadcom SDK would not be expected to work. There is an HTC BLE SDK that works with the HTC One X+, Droid DNA, and HTC One that you can sign up for the HTC BLE SDK here:
http://www.htcdev.com/devcenter/opensense-sdk/partner-apis/bluetooth-low-energy/

like image 25
Lance Nanek Avatar answered Sep 24 '22 18:09

Lance Nanek