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

Cannot get notifications data on BLE_NUS_C_EVT_NUS_RX_EVT

Hi,

I am trying to change an example code on ble_app_uart_c (Central) SDK10.0.0 s130.

I have changed already peripheral example and I can see notification data if I connect to peripheral (ble_app_uart) via IOS LightBlue app.

But I could not get the same data via Central example, what I am missing?

Peripheral sends 20bytes via ble_nus_string_send after check:

if (p_ble_evt->evt.gatts_evt.params.write.handle == m_nus.rx_handles.cccd_handle) {

From Central I can see only:

Connected to target
[DB]: Starting discovery of service with UUID 0x1 for Connection handle 0
[DB]: Discovery of service with UUID 0x1 completed with success for Connectionhandle 0
The device has the device RX characteristic
The device has the device TX characteristic

Any help would be greatly appreciated.

Vitaliy

Parents
  • I found the reason why I don't get notifications; it is because of distance. When Central and Peripheral are close enough: within 50 cm I get all notifications. If I move them further away from each other notifications start to drop, not all of them can be received by Central. And if the distance is more than 1.5m than Central will not get them at all.

    I thought if a connection is established and Central can clearly get disconnect event then notifications are safe...

    What would you suggest to get all notifications?

Reply
  • I found the reason why I don't get notifications; it is because of distance. When Central and Peripheral are close enough: within 50 cm I get all notifications. If I move them further away from each other notifications start to drop, not all of them can be received by Central. And if the distance is more than 1.5m than Central will not get them at all.

    I thought if a connection is established and Central can clearly get disconnect event then notifications are safe...

    What would you suggest to get all notifications?

Children
No Data
Related