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

nRF Connect log

Hi,

I'm testing heart rate measurement example with my nRF52 DK. In the nRF connect application, I see the logs are converted from Hexadecimal value to user-readable values. I want to implement this in my own project with accelerometer values. In the accelerometer project, I only see values in hexadecimal. Thank you for your time and information. 

Parents
  • Hi

    How do you handle the service once the devices are connected and the service is discovered? What do you do in your central application to read the service values?

    As you can see in the ble_app_hrs_c example in our SDK, the Heart Rate Collector handler enables notifications of the heart rate service after service discovery in order to get the Heart Rate values periodically.

    Best regards,

    Simon

  • Sorry I was wrong. Service discovery was not complete. I do not receive the (Discovery of service with UUID 0xABCD completed with success on connection handle 0x0) message. The RTT stops at the following message.

    <debug> nrf_sdh_ble: BLE event: 0x32.
    <debug> nrf_ble_gq: Adding item to the request queue
    <debug> nrf_ble_gq: GATTC Characteristic Descriptor Request
    <debug> nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
    <debug> nrf_ble_gq: Processing the request queue...

    I think BLE_C_EVT_DISCOVERY_COMPLETE event is not updated. RTT says GATT procedure 4 succeeded, then the debugger stops running.

Reply
  • Sorry I was wrong. Service discovery was not complete. I do not receive the (Discovery of service with UUID 0xABCD completed with success on connection handle 0x0) message. The RTT stops at the following message.

    <debug> nrf_sdh_ble: BLE event: 0x32.
    <debug> nrf_ble_gq: Adding item to the request queue
    <debug> nrf_ble_gq: GATTC Characteristic Descriptor Request
    <debug> nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
    <debug> nrf_ble_gq: Processing the request queue...

    I think BLE_C_EVT_DISCOVERY_COMPLETE event is not updated. RTT says GATT procedure 4 succeeded, then the debugger stops running.

Children
Related