This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Integrating two NRF Development kit blinky code with my android app at that time data is not received

While connecting with one NRF Development kit and Android NRF blink app mobile code, data is getting received properly.

But with some changes in development kit code ,We are trying to make a connection between 2 development kits in that one  DK act as a central and another DK as peripheral

Now mobile will connect with one central DK at that time data callback not getting received in the mobile side.

But checking with other BLE Scanner android apps , Data is received but in NRF Blinky android code data receive callback is not happening.

we are using same service UUID and button characteristics for both the development kit whether that is a issue.

Parents
  • Hi

    Thank you for your clarifications.

    The number of links are set by CONFIG_BT_MAX_CONN in Kconfig in the nRFConnect SDK. How is the DK handling the switch between being a central and peripheral exactly. I don't think we have a multirole application in the nRFConnect SDK, but we do in the nRF5 SDK if that's of interest to you.

    I'm afraid I don't understand what you refer to by "So Byte Array of data sent from DK is not received in mobile blinky app ,but able to read from other Core BLE Apps". You should be able to debug on the DK by running the application in debug mode and see if the debug log returns any errors while running.

    I'm guessing what's going on is that your Android application loses the connection to your DK when it switches to being a central and connects to the other "only peripheral" DK. You need to handle the device switching between being a central and peripheral in this case. Do you want the device to act as a relay device passing on the information from the peripheral only device to the Android app?

    Best regards,

    Simon

Reply
  • Hi

    Thank you for your clarifications.

    The number of links are set by CONFIG_BT_MAX_CONN in Kconfig in the nRFConnect SDK. How is the DK handling the switch between being a central and peripheral exactly. I don't think we have a multirole application in the nRFConnect SDK, but we do in the nRF5 SDK if that's of interest to you.

    I'm afraid I don't understand what you refer to by "So Byte Array of data sent from DK is not received in mobile blinky app ,but able to read from other Core BLE Apps". You should be able to debug on the DK by running the application in debug mode and see if the debug log returns any errors while running.

    I'm guessing what's going on is that your Android application loses the connection to your DK when it switches to being a central and connects to the other "only peripheral" DK. You need to handle the device switching between being a central and peripheral in this case. Do you want the device to act as a relay device passing on the information from the peripheral only device to the Android app?

    Best regards,

    Simon

Children
No Data
Related