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

NUS UART data handler issue

file.txtHi,

In my application I am using UART service which receives the data sent from APP. I am using nrf connect APP. I am sending simply 1 and 2 from UART service. Sometimes the nus data handler is called and dedicated operation is being performed. But sometimes Flow of execution does call the nus data handler even I am sending data from APP.

Can Someone help me to resolve this issue?

I have attached the code below

Parents
  • Hi Stefan,

    I tried putting the breakpoints in ble_dispatch function. It is hitting all the times to breakpoints when I am sending data from APP. I am getting values as folloew: 1)uuid_type = 0x02 2)service handle = 15 3)value handle = 20 4)_evt_id = 80 5)evt_len = 19

    It is happening only with UART. HRS and BAS service working fine.

    Can you suggest any steps to resolve the issue.

Reply
  • Hi Stefan,

    I tried putting the breakpoints in ble_dispatch function. It is hitting all the times to breakpoints when I am sending data from APP. I am getting values as folloew: 1)uuid_type = 0x02 2)service handle = 15 3)value handle = 20 4)_evt_id = 80 5)evt_len = 19

    It is happening only with UART. HRS and BAS service working fine.

    Can you suggest any steps to resolve the issue.

Children
No Data
Related