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

Getting unknown error when reading a characteristic value with RTC systick for freertos

Hi Team,

I have a custom characteristic with authorized read enabled. It is working fine if  I use FREERTOS_USE_SYSTICK as configTICK_SOURCE. If I use FREERTOS_USE_RTC I am getting unknown error when I read the characteristic value using NRF connect app (Attached the screenshot).

In non working case I found following scenarios

1. If I directly read characteristic value after connecting I am getting Error 168(0xa8): UNKNOWN(168) or Error 8(0x8): GATT INSUF AUTHORIZATION(Refer screenshot).

2. In this case if I read notification and indication status and followed by characteristic value read I am getting value(working refer screenshot)

3. But if I enable or disable notification(write) and after that if I do characteristic value read I am getting Error 64(0x40): UNKNOWN(64). After this even repeating step 2 was not able to read data.

NOTE: This problem doesn't occur in one plus 6(even with RTC) phone but occurs for pixel2 and Samsung phone.

Related