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

Setting channel mask for quietest channel selection #1051

Closed
mikomarrache opened this issue May 5, 2020 · 5 comments
Closed

Setting channel mask for quietest channel selection #1051

mikomarrache opened this issue May 5, 2020 · 5 comments

Comments

@mikomarrache
Copy link
Contributor

Hi,

We would like to be able to set a channel mask before forming the network so that the quietest channel will be selected (in case no channel is set before starting the network manager).

There is a field channels in the Ember network parameters, but I guess it hasn't been intended for this use, am I right?

Would it be possible to use it for this purpose?

Thanks,
Mickael

@triller-telekom
Copy link
Contributor

For Ember and Telegesis chips, this is already implemented: See

if (networkParameters.getRadioChannel() == ZigBeeChannel.UNKNOWN.getChannel()) {
networkParameters.setRadioChannel(quietestChannel);
}

and

public ZigBeeStatus setZigBeeChannel(ZigBeeChannel channel) {
if (channel == ZigBeeChannel.UNKNOWN) {
// do an energy scan
ZigBeeChannel quietestChannel = findQuietestChannel();
if (quietestChannel != ZigBeeChannel.UNKNOWN) {
radioChannel = quietestChannel;

Just pass the UNKNOWN channel when creating the network.

@stale
Copy link

stale bot commented Jul 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 7, 2020
@stale stale bot closed this as completed Jul 21, 2020
@tejas-n
Copy link
Contributor

tejas-n commented Aug 24, 2020

@triller-telekom But I don't think you can set a custom channel mask, right? For eg: if I wanted the library to just scan channels 11, 14, 15, 19, 20, 24, and 25, is there a way to do that?
Another closely related question that I have is should would the library automatically scan and select the appropriate channel if the co-ordinator reboots and starts the network again with startup(false)?

Is #958 related to these questions?

@triller-telekom
Copy link
Contributor

But I don't think you can set a custom channel mask, right? For eg: if I wanted the library to just scan channels 11, 14, 15, 19, 20, 24, and 25,

Correct.

is there a way to do that?

No, this hasn't been implemented yet. Feel free to come up with a PR :-)

Another closely related question that I have is should would the library automatically scan and select the appropriate channel if the co-ordinator reboots and starts the network again with startup(false)?

No.

Is #958 related to these questions?

Yes.

@tejas-n
Copy link
Contributor

tejas-n commented Aug 25, 2020

Thanks, @triller-telekom. I can give it a shot in my free time, I'll ask for further details on the other ticket 😄

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

No branches or pull requests

3 participants