Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[radio] correct the mInfo.mRxInfo.mTimestamp value of recevied frames #966

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

zhanglongxia
Copy link
Contributor

The mInfo.mRxInfo.mTimestamp represents the end time of the SFD of the received frame. But the radio driver sets the mInfo.mRxInfo.mTimestamp value to the first symbol time of the received frame.

This commit adds a method nrf_802154_timestamp_end_to_phr_convert() to calculate the end time of the SFD of the received frame. The method comes from the sdk-nrfxlib.

@zhanglongxia zhanglongxia added the bug Something isn't working label Jan 3, 2025
Copy link
Member

@LuDuda LuDuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@Irving-cl Irving-cl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

third_party/NordicSemiconductor/drivers/radio/nrf_802154.h Outdated Show resolved Hide resolved
The `mInfo.mRxInfo.mTimestamp` represents the end time of the SFD of the
received frame. But the radio driver sets the `mInfo.mRxInfo.mTimestamp`
value to the first symbol time of the received frame.

This commit adds a method `nrf_802154_timestamp_end_to_phr_convert()`
to calculate the end time of the SFD of the received frame. The method
comes from the `sdk-nrfxlib`.
@zhanglongxia zhanglongxia force-pushed the nrf-radio-rxinfo-timestamp branch from e438978 to e18f357 Compare January 13, 2025 02:10
@jwhui jwhui merged commit e5a7c03 into openthread:main Jan 13, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants