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

Return status 33 when ranging is not available between devices. #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bobwzy
Copy link
Collaborator

@bobwzy bobwzy commented Jun 21, 2024

We should not send ShortMacTwoWaySessionInfoNtf with no measurement back
to host. Instead, send measurement with status 33 when ranging is not
available.

We should not send ShortMacTwoWaySessionInfoNtf with no measurement back
to host. Instead, send measurement with status 33 when ranging is not
available.
@bobwzy bobwzy requested review from hchataing and SilverBzH June 21, 2024 01:08
@hchataing
Copy link
Collaborator

Could you add a small test to validate the change please ? You can copy the ranging_example and modify it for that.

}
}
// If a controlee drops out due to out of range or power off etc, send
// ranging measurement with status 33.
Copy link
Collaborator

Choose a reason for hiding this comment

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

with code STATUS_RANGING_RX_TIMEOUT

@@ -438,7 +458,7 @@ impl Pica {
continue;
}

if peer_device.can_start_ranging(session, session_id) {
if peer_device.is_compatible_for_ranging(session, session_id) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you check the wrong condition here: you should be checking if the session app_config contains the peer_device, but you check if the peer_device has a session that contains the session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants