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

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

I managed to download the Broadcom BLE SDK , install via the Android SDK Manager, as described on the website, and download sample projects .

When I tried to push one of the examples to my test phones (HTC One S, HTC One X with Bluetooth BLE function), I ran into the following problem:

INSTALL_FAILED_MISSING_SHARED_LIBRARY 

Is it possible to enable the broadband library described in the AndroidManifest.xml file? <uses-library android:name="com.broadcom.bt.le" android:required="true"/>

Someone managed to check examples of projects with a wide range? And on which phone?

An error was detected in accordance with this message on the Samsung Galaxy S3, but I did not find any information on HTC products.


UPDATE: What a great news !!!

The latest version of Android 4.3 (Jelly Bean) now supports low-energy Bluetooth Smart accessories.

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

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

I’m not sure that each phone will have an update (even the latest HTC One M7, for example), but the following phones will definitely have this major release built in.

+7
source share
8 answers

The problem is that if your phone does not have the .so file installed, this will not help.

And your device will only (at the time of this writing) have a .so file if Broadcom blessed the device.

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

For those who 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. It is not surprising that each of them only works on a phone that has these supplier chips.

This is a terrible, terrible situation, and Google REALLY needs to move forward, or Android will become completely inappropriate in the small industry known as HEALTHCARE !!!!!

+11
source

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

+6
source

Confirmation that the BroadCom BLE package runs on HTC 1X + and interacts with the standard TI KeyFob Demo demo .

It seems like I'm doing a dumb post, but I thought that someone might be invited to continue the unequivocal expression of at least a little success.

BleFindMeClient really works on HTC 1X + in combination with the TI CC2540-mini Keyfob aka KeyFobDemo in the TI distribution.

I never wrote an Andoid application or a code for TI baseball, so it was very difficult for me to figure out how all the tools worked and how to configure them, but there was no real magic. For me, some of the other Android demos don’t gather gates without any tricks of the code, but it may just be my inexperience.

http://youtu.be/cqWpjU7gJ2Q

For another issue regarding getDeviceType (), here is a piece of code that works great every time on HTC 1x +. Hope this helps too.

 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); if ( BleAdapter.getDeviceType(device) == BleAdapter.DEVICE_TYPE_BLE ) { ... } 
+3
source

Someone will find a solution here .

Three steps:

  • Do not include in the manifest file.

  • In the project Properties β†’ Java Build Path β†’ Libraries β†’ Add external jar add an extended jar.

  • In the Properties β†’ Java Build Path β†’ Order and Export project, check the jar enabled in step 2.

Finally, projects with Broadcom samples are launched, but after a few seconds due to an unknown virtual method not implemented on HTC ( .getDeviceType() , ...)!

+2
source

Something seems to be missing on HTC phones too. This error means that there is probably a software layer (or crash) between the BLE hardware and the API. To date, I have only seen BLE work in Motorola Razr, but it seems to be limited to a heart rate profile (and it does not use the Broadcom API).

+1
source

If there is any authority recording the application depending on this SDK, there is one line that I want to say

in DeviceDiscovery, they call the getDeviceType method, which is not defined anywhere in the entire Android JB codebase, so it only crashes there. therefore, if you are trying to remove a failure, just keep in mind that you cannot do this if it fails in a Discovery event.

+1
source

Just to clarify, just starting with these currently available HTC devices you will find BLE support: HTC One X +, HTC Droid DNA and, of course, HTC One and upcoming flagship devices. Please note: from 4.3 you have to switch to the standard official Android BLE API in order to support devices up to 4.3, you can use the HTC BLE API. See https://www.htcdev.com/devcenter/opensense-sdk/bluetooth-smart for more information and sample code that supports both APIs.

0
source

What a great news !!!

The latest version of Android 4.3 (Jelly Bean) now supports low-energy Bluetooth Smart accessories.

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

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

I’m not sure that each phone will have an update (even the latest HTC One M7, for example), but the following phones will definitely have this major release built in.

0
source

All Articles