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

Not able to send the notification in FreeRTOS

Hello,

When Implementing an BLE peripheral example with some custom service and connected to the mobile phone with nRF kit. Able to connect and discover service which we added. But when mobile phone is enabling notification, host application is not able to receive that GATT_WRITE event. What is wrong ?

I am able to get the Connection, PHY update as well as connection params update event, but not gatt_write event for notification enable as well as for any characteristic write. This issue is coming in FreeRTOS, not in the Bare metal.

Thanks
Keyur

Parents
  • I do not see any FreeRTOS specific functionality that would affect this unless the GATT_WRITE event is being completely missed. Which SDK are you using? Can you help me reproduce the issue by attaching the minimalist project?

  • Hello Susheel,

    Thank you for the response. But after some change I am able to do that. I have one problem in implementing FreeRTOS in my application. The problem is that my mobile phone is unable to receive the notification as continuous in FreeRTOS. Do you have any idea what can be the issue?

    In my application code, I have created 4 task. How to synchronize them? What is the best way to do it?

  • Keyur said:
    The problem is that my mobile phone is unable to receive the notification as continuous in FreeRTOS

     Are you comparing the continuity with some non FreeRTOS application you have?

    if your application is sending the notifications through one task, and if you wish that these should have higher priority than other processing, then you need to set the task priority as such. 

    In general there is no easy way to suggest the task priorities for you application without understanding what they are doing. Can you please describe what the 4 tasks are doing? so that i get atleast some idea on suggesting the priority model.

Reply
  • Keyur said:
    The problem is that my mobile phone is unable to receive the notification as continuous in FreeRTOS

     Are you comparing the continuity with some non FreeRTOS application you have?

    if your application is sending the notifications through one task, and if you wish that these should have higher priority than other processing, then you need to set the task priority as such. 

    In general there is no easy way to suggest the task priorities for you application without understanding what they are doing. Can you please describe what the 4 tasks are doing? so that i get atleast some idea on suggesting the priority model.

Children
No Data
Related