Android 4.0.4 BLE API, BroadCom - Motorola

后端 未结 2 1286
忘了有多久
忘了有多久 2021-02-03 15:12

Iam working on a HealthCare project atm. we are making a test setup where we use a Motorola Razr Max with android 4.0.4 as Gateway. The phone\'s BLE will communicate with a BLE

2条回答
  •  一生所求
    2021-02-03 16:10

    I have very similar problem to this one.

    I run with Android Motorola XT910 Android 4.0.4.

    Configuration (on my standard eclipse and on a clear system - both same)

    1) Eclipse + Android SDK + ADT
    2) Package from motorola ICS_2 inside add-ons
    3) import project from samples Motorola_BLE_API_sample
    4) Setup motorola android in project properties
    5) Remove android jar's
    6) add BluetoothGatt, BluetoothGattService jars
    and then run project (test with BLE112 dev board, UUID set to :

    
       org.bluetooth.service.health_thermometer
       
       Health Thermometer Service
       
       
    

    simply sample to see anything )

    I received this problems

    1) device.getName() return null, I must comment it (rest eg bound is OK)
    2) device could connect only with HRM UUID (i change in 2 places in sample code)
    3) always return (in BluetoothGatt.CONNECT_COMPLETE) FAILURE

    when I try Motorola_BLE_profile_sample I received similar errors to MIR, BluetoothDevice.ACTION_GATT, BluetoothDevice.EXTRA_GATT and getGattServices are not visible (and in ICS_R2 [Android 4.0.3]->android.jar->android.bluetooth->BluetoothDevice tree to) ?

    What I'm doing wrong ?

    ---------- UPDATE

    Really annoying ! Do not read motorola FAQ As mentioned ! remove all jar (including this from ICS2) and fix project THANX !

提交回复
热议问题