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

DBUS: Implement the "channel" arguments in "EnergyScan" method #2471

Open
caipiblack opened this issue Sep 3, 2024 · 0 comments
Open

DBUS: Implement the "channel" arguments in "EnergyScan" method #2471

caipiblack opened this issue Sep 3, 2024 · 0 comments

Comments

@caipiblack
Copy link
Contributor

caipiblack commented Sep 3, 2024

Hello,

It's possible to start an EnergyScan to a specific channel using ot-ctl commands like this:

# Duration: 200ms
# Channel: 20
ot-ctl scan energy 200 20
  • We would like to do the same with DBUS, but currently only the duration parameter is present
  • The two methods call the same function: otLinkEnergyScan() but the DBUS variant, always read the channel from otPlatRadioGetPreferredChannelMask()

The scan method of ot-ctl is calling otLinkEnergyScan() here

The EnergyScan method of DBUS API is calling otLinkEnergyScan() here

We need it for the PCBA tests, we would like to read the RSSI on a specific channel (instead of all, to speed up)

The difficulties here are maybe just to know how to make the parameter channel optionable in the DBUS API.

There is maybe a temporary method, but I don't like it:

  • Calling ot-ctl channel preferred xxx before and after the scan triggered by DBUS..
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

No branches or pull requests

1 participant