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

how to receive multiple services and characteristic data on single receiving node(nRF52840 DK)?

hi,

i am using a nRF5240 DK for receiving multiple services and characteristics data from Nordic_thingy_52,to receive and print this data on UART i used sdk 14.2.0's "ble_app_blinkey_c" example and modified it to receive data from Nordic_thingy_52, so far i am able to receive environment service data like temperature, pressure, humidity, CO2 level successfully. but when i implemented battery service in same code, now i am getting temperature and battery level only. other characteristics from environment service is not being recived.

please help me out,

regards, NIKUNJ D. RANAimage description

Parents
  • Hi Nikun,

    Why didn't you continue with the other case but creating new case ?

    What do you mean by "not being recived", was it you couldn't find the service on thingy or you find the service, but there was no notification ?

    Please try to verify operation by using nRFConnect app. Note that for a service to send notification, you need to set the CCCD = 1.

  • Have you verified that notifications are enabled for all services ?

    Then you can check if notifications are actually sent by the services. You can check if they are sent from the thingy by debugging the source code, print out some log when the notifications are sent. You can check if it's sent over the air by using a sniffer.

    If notification are actually sent from all service, you can then check if they are received on the nrf52840 DK or not. You can check if you receive BLE_GATTC_EVT_HVX event for each of the service or not.

Reply
  • Have you verified that notifications are enabled for all services ?

    Then you can check if notifications are actually sent by the services. You can check if they are sent from the thingy by debugging the source code, print out some log when the notifications are sent. You can check if it's sent over the air by using a sniffer.

    If notification are actually sent from all service, you can then check if they are received on the nrf52840 DK or not. You can check if you receive BLE_GATTC_EVT_HVX event for each of the service or not.

Children
No Data
Related