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.

CC2541: OAD is too slow in android

Part Number: CC2541

The upgrade time is very slow 360 seconds, the upgrade mode is notify the safe mode upgrade, notify returns the number of blocks, the android device sends the block of this number

If the android device does not use the safe mode to consecutive send blocks regardless of the notify and set the delay of 10 ~ 60 milliseconds will not be upgraded successfully, I found the notify to check the 0th block each time by checking the log, so How to solve? Also, when the service was found, the connection control service uuid=f000ccc0-0451-4000-b000-000000000000 could not be found, so the connection interval could not be set. Does this affect the quick upgrade?

  • Hi,

    Can you double-check what connection parameters are used? Also, can you post a sniffer log of this?

  • Yes, I checked that I didn't use the connection parameters, it was used in DEMO, but I was commented out because I couldn't find the connection control service

    Sorry, the sniffer log is not available now

    I refer to the two projects sensortag-android and ble-oad-android-source-code, they send the block the same way, sending a block of 18 bytes of data including the number of the block at a time.

    It would be great if you could provide a DEMO that could be upgraded quickly

    Thank You.

  • I found a way to solve, Not open block notification when upgrading.

    Comment this line of code:

    //  setCharacteristicNotification(mCharBlock, true);


    I don't know why , but it's working, the upgrade will be completed in two minutes.