This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540DK and Motorola



Hello,

I have just read on the wiki that the Motorola API no longer supports the CC2540DK mini:

MotoRAZRAndroidBLEDemo Obsolete. Updated Motorola BLE SDK with new API is not compatible.

Is this true, and are there any ways to get a Motorola Razr Maxx to work with the CC2540DK mini?

Cheers,

Ben

  • Hi Ben,

    Unfortunately, it's true for the later version(s) of the Moto software. You could get it up and running with older versions.

    Best Regards

  • Android really does hate the idea of BLE functioning properly doesn't it?

    Had a little look around the Motorola forums, it appears that ICS broke their BLE API and they said they are planning/working on getting it functional again, with no timeframe given. Has anybody used the Broadcom API?

    Cheers,

    Ben

  • Hi Nick! The problem is with Motorola SDK o with the Android SO version?

    I need develop a ble application for motorola razr, which are the steps that i should follow ? 

    Thanks in advance

  • Hi,

    I'm working actualy with the Motorola Razr XT910 and the Keyfob (CC2540DK mini). My Razr runs on ICS (Android 4.0.4) and I'm using the Motorola Handset SDK Addon "Motorola ICS R2". Some people think the BLE support is broken because Motorola changed their API and with that the android package names. Most of the BLE example application start with a query for the now obsolete package names and state that BLE is not supported.

    It is true that the API documentation is at the moment totaly worthless, but there are two examples in the SDK-Addon which can be used as a starting point.

    Recently I posted a LogCat output, where I was communicating with the Keyfob: Link.

    Here is a little tutorial for the new API.

    Regards,

    PeterVanPansen

  • Hi,

    Thanks so much for this information! It is very helpful. I currently have not upgraded my phone from Gingerbread to use the old API, but with this info I think I will try to upgrade to ICS and try it get it working.

    Cheers,

    Ben

  • Hi Ben,

    DON'T do the upgrade, seriously don't do it!!! I think you will have more control for now if you using the older system! Wait until a new API documentation arrives!!! I wish I haven't made the update! Maybe may post was to optimistic, BLE works but not very well indeed! I think many bugs are related to timing problems but I can't prove it right now.

    Regards,

    PeterVanPansen

  • Hi Peter,

    Thanks for your reply, I have not updated and my phone still says Android version 2.3.6

    However, I am trying to run the Motorola_BLE_API_sample2 application, and also make my own application (using Ecplise). Both of these fail because I need to use the "connectLe" method to connect with the bluetooth chip.

    It says I need to add the "MOT_BTLE_Stubs.jar" file to my build path, and I have done so, but when I look at the classes inside the .jar file it says "The source attachment does not contain the source file for the IBluetoothHrm.class" and when I run my application it fails the moment I try to call connectLe with the message:

    "1E/AndroidRuntime(3330): java.lang.NoSuchMethodError: com.motorola.bluetooth.hrm.IBluetoothHrm.connectLe"

    Given your experience with it, do you have any idea what might be going on, and where I can find these classes?

    Best Regards,

    Ben


  • Hi Ben,

    it is correct that there is no source attached to the class files but I have no idea why the class files are not working properly. I guess you can use the AIDL files from the ICS R2 API sample instead they might work.

    See the screenshot how to include them...

    Here are the AIDL files from the Motorola ICS R2 Addon API example...

    7271.ICS_R2_example_AIDLs.zip

    Regards,

    PeterVanPansen

  • Hi Peter,

    Thanks for your reply, I'm glad its not just me, I bought my Motorola Razr Maxx very recently so maybe its just been updated with the new drivers or something. I'm hoping to be able to do some more project work in the new few days/week so I'll give your suggestion a shot and see if it works. I may well transfer over to ICS if it actually works! Many thanks.

    Regards,

    Ben

  • Hi Peter,

    Have been trying for ages now to get the BLE to work, couldn't manage to do it on Gingerbread, I have no upgraded my phone to ICS and was wondering if you could tell me how to create the files like it says in the tutorial http://www.tekritisoftware.com/how-to-implement-ble-in-android ?

    I tried just writing them as .java files in the locations that it indicated but the program seemed to be having none of it. Any help you can give is much appreciated, I really need to get this up and running sometime soon or my project is going to fail! :S

    Cheers,

    Ben

  • Many apologies for a double post, I think I have worked out how to create a file, I just made a text document and saved it as a .aidl file in the correct file path and that seemed to work. However, I still have trouble following this tutorial. Specifically, in the code snippet:

    private boolean getGattServices(ParcelUuid uuid, BluetoothDevice btDevice)
        {
        Log.d(TAG, "Calling btDevice.getGattServices");
        return btDevice.getGattServices(uuid.getUuid());
        }

    it says "the method getGattServices(UUID) is undefined for the type Bluetooth Device".

    Have I failed to attach the extermal libraries correctly?

    Long story short I'm having a huge nightmare, and anything you could do to get my phone performing the same as you managed with the LogCat output would be incredibly appreciated. Just to clarify I am now on ICS

    Cheers,

    Ben

  • Hi Peter,

    I am extremely sorry for all this repeated posting but I just wanted to say thank you so much, your post http://stackoverflow.com/questions/13272310/android-4-0-4-ble-api-broadcom-motorola has saved my life! My application is up and running, will all the functionaility that you showed, and this is a great start for my project.

    Thanks again,

    Ben

  • Please I need Motorola  BLE jar. I cannot find it on motorola web site. I also need the SDK and add-on. Can Put a link so that I get It.  

    thanks

  • Hi Peter 

    Please can you put a link so that I get MOT_BLE_Stubs.jar. I cannot find it anywhere. I also need motorola add-on.

    thanks  

  • Hi,


    hm ok the Motorola resources seem to be gone! I've made backups last year, maybe outdated but of interest.

    API Description:

    Origin: http://www.motorola.com/sites/motodev/library/bluetooth_apis.html

    Backup: http://www.mediafire.com/view/1oo19mesxkjxvb6/Motorola_BLE_API.pdf

    Motorola SDK Addons (Nov 2012):

    Origin: http://www.motorola.com/sites/motodev/us-en/motodev_lp.html

    DroidRAZR Backup: http://www.mediafire.com/download/kfc1v3e22o0c421/DroidRAZR_sdkaddon_110.zip

    Motorola_ICS_R2 Backup: http://www.mediafire.com/download/ixvbs15aawr31jk/Motorola_ICS_R2_sdkaddon_100.zip

     

    If someone feels offended or something by the uploaded files please contact me via this forum.


    Kind regards

    PvP

  • Thanks a lot. I downoaded it. 

    I'm working on.

    Thanks again

  • Hi Peter.

    Please Do you have a functionnal source code for scan devices  on motorola BLE. I didn't found a source code for scanning devices. I'm working on motoAct (motorola smart watch). I need help

    Thanks

  • Hi,

    sorry can't help you with that. I know nothing about your device. I suggest you contact a Motorola evangelist or try to get help from the Motorola developer forum (good luck with that) or you wait until API Level 18 is available for your device (Android Native BLE Support). Sorry.

    Btw. discovery is done like with normal Bluetooth devices, walk throught this Bluetooth | Android Developer.

    Kind regards
    PvP

  • Hi, The official website of motorola API is not available but I found a copy of that here :

    http://www-uat.motorola.com/sites/motodev/us-en/motodev_lp.html

    Good regards

  • Hi Peter

    I saw your posts on others website about the steps to use Motorola_ICS_R2. I followed that steps but Motorola_BLE_profile_sample don't work. I've got Link problems with BluetoothGatt.jar and BluetoothGattService.jar that I've added in my build path. 

    Need to know I work on MotoAct (Motorola Smart watch ) running into android 2.3.4 with a Bluetooth Low Energy chipset from TI but I think It is not the problem.  When I build the projtes o

    09-23 11:01:12.421: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothDevice.getGattServices, referenced from method com.motorola.bluetooth.ble.Motorola_sample_apk_icsActivity.getGattServices
    09-23 11:01:12.445: W/dalvikvm(3533): VFY: unable to resolve virtual method 41: Landroid/bluetooth/BluetoothDevice;.getGattServices (Ljava/util/UUID;)Z
    09-23 11:01:12.445: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x000b
    09-23 11:01:12.445: D/dalvikvm(3533): VFY: dead code 0x000e-000f in Lcom/motorola/bluetooth/ble/Motorola_sample_apk_icsActivity;.getGattServices (Landroid/os/ParcelUuid;Landroid/bluetooth/BluetoothDevice;)Z
    09-23 11:01:12.491: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.499: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.499: E/dalvikvm(3533): Could not find class 'android.bluetooth.BluetoothGattService$ServiceHelper', referenced from method android.bluetooth.BluetoothGattService.<init>
    09-23 11:01:12.499: W/dalvikvm(3533): VFY: unable to resolve new-instance 8 (Landroid/bluetooth/BluetoothGattService$ServiceHelper;) in Landroid/bluetooth/BluetoothGattService;
    09-23 11:01:12.499: D/dalvikvm(3533): VFY: replacing opcode 0x22 at 0x0025
    09-23 11:01:12.499: D/dalvikvm(3533): VFY: dead code 0x0027-0037 in Landroid/bluetooth/BluetoothGattService;.<init> (Landroid/bluetooth/BluetoothDevice;Landroid/os/ParcelUuid;Ljava/lang/String;Landroid/bluetooth/IBluetoothGattProfile;)V
    09-23 11:01:12.507: I/dalvikvm(3533): Could not find method android.bluetooth.IBluetooth.getCharacteristicProperties, referenced from method android.bluetooth.BluetoothGattService.updateCharacteristicPropertyCache
    09-23 11:01:12.507: W/dalvikvm(3533): VFY: unable to resolve interface method 120: Landroid/bluetooth/IBluetooth;.getCharacteristicProperties (Ljava/lang/String;)[Ljava/lang/String;
    09-23 11:01:12.507: D/dalvikvm(3533): VFY: replacing opcode 0x72 at 0x0003
    09-23 11:01:12.507: D/dalvikvm(3533): VFY: dead code 0x0006-0006 in Landroid/bluetooth/BluetoothGattService;.updateCharacteristicPropertyCache (Ljava/lang/String;)V
    09-23 11:01:12.507: I/dalvikvm(3533): Could not find method android.bluetooth.IBluetooth.closeRemoteGattService, referenced from method android.bluetooth.BluetoothGattService.close
    09-23 11:01:12.507: W/dalvikvm(3533): VFY: unable to resolve interface method 113: Landroid/bluetooth/IBluetooth;.closeRemoteGattService (Ljava/lang/String;)V
    09-23 11:01:12.507: D/dalvikvm(3533): VFY: replacing opcode 0x72 at 0x0021
    09-23 11:01:12.507: D/dalvikvm(3533): VFY: dead code 0x0024-002d in Landroid/bluetooth/BluetoothGattService;.close ()V
    09-23 11:01:12.515: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.515: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.523: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.530: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.530: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.deregisterCharacteristicsWatcher, referenced from method android.bluetooth.BluetoothGattService.deregisterWatcher
    09-23 11:01:12.530: W/dalvikvm(3533): VFY: unable to resolve virtual method 64: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.deregisterCharacteristicsWatcher ()Z
    09-23 11:01:12.530: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x002a
    09-23 11:01:12.530: D/dalvikvm(3533): VFY: dead code 0x002d-0036 in Landroid/bluetooth/BluetoothGattService;.deregisterWatcher ()Z
    09-23 11:01:12.530: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.538: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.538: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.546: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.546: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.doDiscovery, referenced from method android.bluetooth.BluetoothGattService.discoverCharacteristics
    09-23 11:01:12.546: W/dalvikvm(3533): VFY: unable to resolve virtual method 66: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.doDiscovery ()Z
    09-23 11:01:12.546: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0002
    09-23 11:01:12.546: D/dalvikvm(3533): VFY: dead code 0x0005-0006 in Landroid/bluetooth/BluetoothGattService;.discoverCharacteristics ()Z
    09-23 11:01:12.546: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.546: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.546: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.546: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.546: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.getCharacteristicClientConf
    09-23 11:01:12.554: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.554: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0003
    09-23 11:01:12.554: D/dalvikvm(3533): VFY: dead code 0x0006-0017 in Landroid/bluetooth/BluetoothGattService;.getCharacteristicClientConf (Ljava/lang/String;)Ljava/lang/String;
    09-23 11:01:12.554: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.562: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.562: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.562: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.562: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.getCharacteristicDescription
    09-23 11:01:12.562: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.562: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0002
    09-23 11:01:12.562: D/dalvikvm(3533): VFY: dead code 0x0005-0010 in Landroid/bluetooth/BluetoothGattService;.getCharacteristicDescription (Ljava/lang/String;)Ljava/lang/String;
    09-23 11:01:12.562: I/dalvikvm(3533): Could not find method android.bluetooth.IBluetooth.getGattServiceProperty, referenced from method android.bluetooth.BluetoothGattService.getCharacteristicPaths
    09-23 11:01:12.562: W/dalvikvm(3533): VFY: unable to resolve interface method 122: Landroid/bluetooth/IBluetooth;.getGattServiceProperty (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    09-23 11:01:12.562: D/dalvikvm(3533): VFY: replacing opcode 0x72 at 0x0007
    09-23 11:01:12.562: D/dalvikvm(3533): VFY: dead code 0x000a-0013 in Landroid/bluetooth/BluetoothGattService;.getCharacteristicPaths ()[Ljava/lang/String;
    09-23 11:01:12.562: D/dalvikvm(3533): VFY: dead code 0x0015-0033 in Landroid/bluetooth/BluetoothGattService;.getCharacteristicPaths ()[Ljava/lang/String;
    09-23 11:01:12.562: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.569: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.569: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.569: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.577: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.getCharacteristicUuid
    09-23 11:01:12.577: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.577: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0003
    09-23 11:01:12.577: D/dalvikvm(3533): VFY: dead code 0x0006-002e in Landroid/bluetooth/BluetoothGattService;.getCharacteristicUuid (Ljava/lang/String;)Landroid/os/ParcelUuid;
    09-23 11:01:12.577: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.577: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.577: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.577: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.577: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.getCharacteristicUuids
    09-23 11:01:12.585: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.585: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0008
    09-23 11:01:12.585: D/dalvikvm(3533): VFY: dead code 0x000b-004c in Landroid/bluetooth/BluetoothGattService;.getCharacteristicUuids ()[Landroid/os/ParcelUuid;
    09-23 11:01:12.585: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.585: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.585: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.593: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.593: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.getCharacteristics
    09-23 11:01:12.593: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.593: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0002
    09-23 11:01:12.593: D/dalvikvm(3533): VFY: dead code 0x0005-000c in Landroid/bluetooth/BluetoothGattService;.getCharacteristics ()[Ljava/lang/String;
    09-23 11:01:12.593: I/dalvikvm(3533): Could not find method android.bluetooth.IBluetooth.getGattServiceName, referenced from method android.bluetooth.BluetoothGattService.getServiceName
    09-23 11:01:12.593: W/dalvikvm(3533): VFY: unable to resolve interface method 121: Landroid/bluetooth/IBluetooth;.getGattServiceName (Ljava/lang/String;)Ljava/lang/String;
    09-23 11:01:12.593: D/dalvikvm(3533): VFY: replacing opcode 0x72 at 0x002b
    09-23 11:01:12.593: D/dalvikvm(3533): VFY: dead code 0x002e-0038 in Landroid/bluetooth/BluetoothGattService;.getServiceName ()Ljava/lang/String;
    09-23 11:01:12.593: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.593: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.593: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.601: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.601: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.isDiscoveryDone
    09-23 11:01:12.601: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.601: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0002
    09-23 11:01:12.601: D/dalvikvm(3533): VFY: dead code 0x0005-0006 in Landroid/bluetooth/BluetoothGattService;.isDiscoveryDone ()Z
    09-23 11:01:12.601: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.601: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.609: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.609: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.609: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.readCharacteristicRaw
    09-23 11:01:12.609: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.609: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x001b
    09-23 11:01:12.609: D/dalvikvm(3533): VFY: dead code 0x001e-0032 in Landroid/bluetooth/BluetoothGattService;.readCharacteristicRaw (Ljava/lang/String;)[B
    09-23 11:01:12.609: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.609: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.616: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.616: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.616: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.registerCharacteristicsWatcher, referenced from method android.bluetooth.BluetoothGattService.registerWatcher
    09-23 11:01:12.616: W/dalvikvm(3533): VFY: unable to resolve virtual method 72: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.registerCharacteristicsWatcher ()Z
    09-23 11:01:12.616: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0026
    09-23 11:01:12.616: D/dalvikvm(3533): VFY: dead code 0x0029-0036 in Landroid/bluetooth/BluetoothGattService;.registerWatcher ()Z
    09-23 11:01:12.624: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.624: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.624: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.624: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.624: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.setCharacteristicClientConf
    09-23 11:01:12.624: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.624: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x0004
    09-23 11:01:12.624: D/dalvikvm(3533): VFY: dead code 0x0007-0050 in Landroid/bluetooth/BluetoothGattService;.setCharacteristicClientConf (Ljava/lang/String;I)Z
    09-23 11:01:12.632: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.632: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.632: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.632: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.632: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.updateCharacteristicValue
    09-23 11:01:12.640: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.640: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x001b
    09-23 11:01:12.640: D/dalvikvm(3533): VFY: dead code 0x001e-0055 in Landroid/bluetooth/BluetoothGattService;.updateCharacteristicValue (Ljava/lang/String;)Z
    09-23 11:01:12.640: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.640: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.648: W/dalvikvm(3533): Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper; (17)
    09-23 11:01:12.648: W/dalvikvm(3533): Link of class 'Landroid/bluetooth/BluetoothGattService$ServiceHelper;' failed
    09-23 11:01:12.648: I/dalvikvm(3533): Could not find method android.bluetooth.BluetoothGattService$ServiceHelper.discoveryDone, referenced from method android.bluetooth.BluetoothGattService.writeCharacteristicRaw
    09-23 11:01:12.648: W/dalvikvm(3533): VFY: unable to resolve virtual method 65: Landroid/bluetooth/BluetoothGattService$ServiceHelper;.discoveryDone ()Z
    09-23 11:01:12.648: D/dalvikvm(3533): VFY: replacing opcode 0x6e at 0x001b
    09-23 11:01:12.648: D/dalvikvm(3533): VFY: dead code 0x001e-0057 in Landroid/bluetooth/BluetoothGattService;.writeCharacteristicRaw (Ljava/lang/String;[BZ)Z
    09-23 11:01:12.718: I/BluetoothLe(3533): onStart()
    09-23 11:01:12.718: I/BluetoothLe(3533): onResume()
    
    
    ne of my errors : 

    Unable to resolve superclass of Landroid/bluetooth/BluetoothGattService$ServiceHelper

    I've joined the log my errors :

  • Hi,

    the ICS in Motorola_ICS_R2 stands for Androids 'Ice Cream Sandwich' you are working on 'Gingerbread', maybe that's causing the trouble.

    Regards

  • May Be. 

    But I think there is a Bluetooth Low energy sdk for my watch. Because in the settings of it I can check to find other sensors like HRM or others and it works fine. I'm not well in english and I think that is the problem I cannot find something about That. 

    I rooted the watch with  ClearDroid for MotoACTV Version 1.2.0 T2 but I have the pb to find the appropriated sdk to Developp a BLE application. If you can look for and find something for me that will help. I'm going on my search.

    thanks in a advance

  • Sorry can't help you.

  • Please.

    need I to add  to make a scan in my main activity? Or How make scan in the main activity? 

    I've solved the links errors I've got.

    thanks

  • Hi

    Sorry to disturb you again. Do you know where can I find DroidRAZR_sdkaddon_102.zip? It is the no updated droid RARZ SDK addon. It works fine for android gingerbread?

    Thanks in advance and sorry again.

  • Hi Applied,

    I'm afraid I can't help you with your problem, but let me give you some advice: throw away everything that you've done with the Motorola API and never look back.

    Since 24th July, Android 4.3 has natively supported Bluetooth Low Energy. I did my entire Electronic Engineering Masters thesis investigating the Motorola BLE API (and got a first in it), and my conclusion was that it is absolute garbage, with no support and zero development future, to the point that even Motorola don't advertise it anymore (I also spoke to a lot of people working in industry who are of the same mindset). It was a good stab into an emerging market at the time, but it didnt go anywhere and now that Google supports BLE natively, there is literally no reason to use the Motorola API. 

    My advice is to upgrade your device to 4.3 and use the official API, then your product will work with all android devices. If you are only designing this for yourself and your phone is too old to support 4.3, I still say give up on the motorola API and buy a new phone, its not worth it.

    Regards,

    Ben

  • Hi

    you may be right but for now I really need this jar. If somebody can help me with the zip or the jar files. It will be great. I'll try to update my motoactv.

    Thanks Ben