Skip to content

[CSL] otPlatRadioReceiveAt window start time question #8140

Closed Answered by edmont
lukatug asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lukatug.

Notice that mCslSampleTime is initialized once with the otPlatRadioGetNow value and then periodically increased by periodUs.

When RadioSupportsReceiveTiming the logic for each iteration is as follows:

  • Timer is configured to be triggered a few milliseconds before the next sample time.
    mCslTimer.FireAt(mCslSampleTime - timeAhead);
  • The radio is informed about the next sample time value:
    Get<Radio>().UpdateCslSampleTime(mCslSampleTime.GetValue());
  • The receive window around the current sample time is configured:
    Get<Radio>().ReceiveAt(mCslChannel, mCslSampleTime.GetValue() - periodUs - timeAhead, timeAhead + timeAfter));
    Here timeAhead doesn't include kCslReceiveTimeAhead which i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jwhui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8127 on September 09, 2022 06:03.