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

nRF52840 start sending data after bonding

Good morning,

We have developed a prototype based on the nRF52840. We have also developed an Android application.

When smartphone has device already bonded the application is perfectly working.

Nevertheless, we have found a problem at the beginning, when smartphone wants to bond the device the first time: when device is bonded the first time, after entering the PIN code, smartphone is connected with the device and smartphone is able to receive data from device. Nevertheless, if smartphone tries to send data to device, this data is not received in the device side. At this moment, if smartphone is disconnected from device and the it connects again, then communications are perfectly working in both directions. So, do you know which can be the reason of this behaviour?? I have tried with different smartphones, and result is the same in all of them.

All the best,

Dani.

Parents Reply
  • Hi,

    Using the nRF Connect I'm observing the same behaviour:

    Once my device is bonded, I send some values through one service. When these data is received in my device, it starts sending all its parameters to the smartphone (one sending every 62.5ms). Through nRF-Connect I have observed that not all data is received first time after device bonding.

    Nevertheless, if device is already bonded, when a smartphone connects to device, all these parameters are correctly received and there are not data losses.

    Which can be the reason of this?

    Dani.

Children
Related