ble_aggregator couldn't be connected by LightBlue APP

Hi,

I got the example http://github.com/NordicPlayground/nrf52-ble-multi-link-multi-role and the demo is OK. 

 I also use nRF Connect APP to connect the ble_aggregator, APP could connect it. But the question, I use other APP(such as LightBlue APP) to connect it, the APP couldn't connect to ble_aggregator.

Have you met the question?  I use S140 v6.1.

BR

BruseLight

  • Yes, Lightblue on an Android is OK. Only using the Lightblue app on iPhone I would have issues connecting to and it indicates timeout. But the BLE_GAP_EVT_CONNECTED event has been generated.

  • Hi

    I was able to reproduce this on my end as well, and it seems to be specific to the iOS Lightblue app and the aggregator application for some reason. From what we've been able to tell from the sniffer trace the Lightblue does service discovery different than nRFConnect, and that it doesn't play well with the aggregator app specifically. Since it connects using nRFConnect and with Lightblue on Android, we can confirm that the aggregator app follows the BLE spec. but the iOS is a bit more specific on what it lets through than others. The aggregator developer will try to take a closer look during the week, but since it is a third party application and an unofficial Nordic application we can't guarantee that we'll fix this.

    Feel free to try tweaking the service discovery in the aggregator app to see if you are able to make it work. Maybe use something like the ble_app_uart service discovery as a template.

    Best regards,

    Simon

  • Hi Simon,

    How is the result?

    I think I have found the reason. I copy and add the peer_manager_init function to the code from ble_app_hrs example, then the  Lightblue app on iPhone could connect to the device. But I still donn't know why it is.

    Best regards,

    Bruse

  • I'm sorry, but we didn't find the root cause during our session last week, and hoped to get a better look this week. So you say that you only added the following to your aggregator application, and suddenly the Lightblue app was able to connect to it? Thank you for the update. I'll take a look and see if I can explain it. Glad you got it working nonetheless!

    Best regards,

    Simon

  • Hi again Bruse

    So, I tested this on my end as well to confirm that it solved the issue, and indeed it seems like it does. The reason seems to be that the Lightblue app expects security measures provided by the peer manager when using the specific services that the aggregator app does. As for why Lightblue does this, is beyond me I'm afraid, and you'll have to take that up with the app developers.

    Best regards,

    Simon

Related