i use nrf5_SDK_for_Mesh_v5.0.0_src and nRF5_SDK_17.0.2_d674dde
I want to create two tasks in ble mesh is it possible to add freertos in ble mesh..?
or any other method to run two tasks with different priorities..?
i use nrf5_SDK_for_Mesh_v5.0.0_src and nRF5_SDK_17.0.2_d674dde
I want to create two tasks in ble mesh is it possible to add freertos in ble mesh..?
or any other method to run two tasks with different priorities..?
Hello,
While it is possible, I would not recommend to add freertos in to the mix with BLE Mesh. Would it be sufficient to use a couple of timers to trigger your two tasks? How often will they occur? Do you imagine they will collide alot? What will the tasks do? The reason I ask is that everything that you put into the mesh stack (e.g. when you want to send a message within your mesh network) needs to come from the same priority level. This is a known limitation with the BLE mesh stack. Outside that, you can do whatever you like in different priorities, although some priority levels are reserved for the Bluetooth Low Energy stack (SoftDevice).
However, if you intend to do tasks that will collide a lot, I think you will see other limitations occur before you see the the collisions between your tasks. Such as the throughput of a mesh network.
Best regards,
Edvin
then how to run two tasks that are low priority in mesh SDK.
then how to run two tasks that are low priority in mesh SDK.
I suggest that you look into the app_timer and run whatever you want to do in their callbacks. Look at the (non-mesh)SDK\examples\ble_peripheral\ble_app_hrs for how to set up the app_timer.
BR,
Edvin
ok thanks