-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
No Function In Zephyr For Reading BLE Channel Map? #19737
Comments
I think we should probably use |
@carlescufi @jhedberg Previously If we keep adding all of these HCI commands to the command the time for getting the information becomes much longer. Should we really add all of these to the conn info object? It is a bit overkill to read all possible data if you are only interested in a simple data field. |
@BOZHENG001 how exactly are you planning to read the channel map? Will you have some trigger to read it, or will you be doing polling at fixed intervals (if so, what kind of intervals)? I assume the controller knows when the map has changed, so it feels a bit inefficient if the host has to poll for it rather than the controller telling the host when a change has occurred. |
@jhedberg Exactly the point! It would be more efficient that the controller will trigger the host when a change has occurred. So let's say, for normal application development, this would be the best choice. But considering development process, it would be better that we developers could read the channel map by fixed intervals, because I found, even in our "crowded" office, the channel map is not that crowded. Then I suppose that channel map will not be updated frequently in a normal environment, and, in this situation, polling at fixed intervals would be a better choice. |
As an alternative solution you can now do this in the application instead.
|
@joerchan |
Closing this as an alternative method can be used. |
@joerchan
I tried to check |
@BOZHENG001 You might have to go to 2.1 to get the missing function. Or maybe cherry-pick the commit (0f06c7d). |
@joerchan Thanks for your hints! I only tried the cherry-pick in my zephyr 2.0, and it works! But I found the results from this function is always the default channel map (ff ff ff ff 1f). I suppose it means this function only reads the channel map, but does not sense environment and update channel map from environment. |
@BOZHENG001 It reads the channel map that is being used in the connection at the moment. |
Is your feature request related to a problem? Please describe.
I am now working on BLE development on Zehpyr, I would like to read channel map so that I can add some specific features to my application, but I found no function in Zephyr supporting this. There are only some functions for setting channel map.
Describe the solution you'd like
Since BLE channel hopping is based on channel map, and theoretically the channel map should change with surroundings by time. It would be useful if there is a function in Zephyr to read the channel map now.
Describe alternatives you've considered
It would be ok if there are some other alternatives/ways/methods to read the channel map.
The text was updated successfully, but these errors were encountered: