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.

iOS application can't discover services occasionally on CC2541, is there any solution?

Other Parts Discussed in Thread: CC2541

I have a CC2541 project copy from SimpleBLEPeripheral(BLE-CC254x-1.4.0):

a. Service UUIDs information removed from the advertising

b. Use internal FLASH to save 4-byte datas triggered by a button action

osal_snv_write(SVN_ADDR, sizeof(this_color), &this_color);

In constant testing, Android application is always OK.

But iOS application(include the LightBlue application) can't discover services occasionally, application can scan the advertising, but can't discover services.

Who can tell me what has happened? is there any solution? Thanks!

  • Hello,

    When you say "application(include the LightBlue application) can't discover services occasionally", does this mean that the connection is formed with the iOS client, but the characteristic discovery fails? More details on when the problem happens in the connection will be useful.

    Best wishes
  • JXS,

    Yes, the connection is formed with the iOS client, but the characteristic discovery fails.
    The iOS discover APIs is pack as library, I don't know how to debug any details.
    May be write internal FLASH is unsafety.
    Do you have any experience with the similar problems? Thanks!

    Hansome
  • Hi Hansome,

    Does the problem go away in the osal_snv_write is not performed? There are cautions in the documenatation about making SNV writes during a connection as a flash compaction could result in a dropped connection. If possible, do a compaction prior to the connection or do not make SNV writes during a connection.

    Best wishes
  • JXS,

    I write the FLASH after a connection, so the Android application is always OK.
    Only the iOS application can't discover services occasionally, thanks!

    Hansome