How is the period for channel sounding results determined?

Hi,

I have run the example in ncs 3.1.0 for CS_RAS_Initiator and compared to the older version ncs 3.0.1, there is a new flag called realtime_rd. Thanks to this, I can get new distance measurement data every 250 ms, which is great.

I took this example and put it into my other project, where I have more tasks. CS measurement works there too, but now instead of every 250 ms, I get results only once every 750 ms.
I am interested why my period is 3x slower, even though the CS procedure settings are exactly the same (procedure_params + config_params). I do have a few extra tasks, but they do almost nothing, so I do not think they are slowing down the MCU so much that it cannot keep up.

Do you have any tips what to focus on please? Maybe some conflict with my prj.conf ?

Thank you very much.

Parents
  • Hello,

    I know at least that previous versions of CS (not sure if this has been addressed in 3.1) where a bit vulnerable to scheduling conflicts - so even though you might be doing a lot, if you had some BLE activity at the wrong time it might be enough to block something that SDC would need to do a CS measurement. Though I find it odd that you get regular measurements every 750ms if that was the case. Is the other minimal actions you are doing the nRF semi-regular as well? Are you seeing anything on the logs, or on the thread viewer in VSC? Could be that there is something blocking that is showing up there.

    Regards,

    Elfving

  • Hello, right now I really do not know what could be causing it - from BLE I only use channel sounding - as it is in the ras initiator example. I will probably have to make the whole project again - start from the ras example and slowly add my code to it.

  • That might be an idea, though let's not go to that step yet. Could you check if you do see this in the default samples as well?

    And what samples are you referring to here? The ones from the NRF repo, or the zephyr ones?

    Regards,

    Elfving

Reply Children
Related