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

Unable to read characteristics complete value

Hi,

We are performing data transfer using NUS service (BLE-UART).

  1. Data passed is a 11-character string.
  2. READ and NOTIFY permissions are provided for Tx characteristic in NUS service.

The string is visible in nrf-Connect Android App's Log on enabling Notification.

But, on pressing read char for Tx characteristic (Down Arrow),sometimes it displays first char of string transmitted and sometimes gives out random character.

How to fix this issue. Do I need to enable some parameter for reading entire string using read characteristics, while adding char in service_init() ?

  • Earlier, I was enabling the notification and reading the characteristics directly, which gave me a single character as output (Sometimes initial char of string passed and sometimes random char).

    So I observed in nrfConnect Android Apps Log, that I was missing one step before performing read char.

    So this works now,

    1. Enable notification
    2. Write Descriptor with 0x0100
    3. Read Char
Related