-
Notifications
You must be signed in to change notification settings - Fork 62
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
use le extended commands set if supported #30
use le extended commands set if supported #30
Conversation
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
This is to allow Commmand Complete response processing in the protocol to determine correct handling of scan requests in later commits. Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
LE Advertising should have the same issue, but I'll file another pull request for that separately. |
Hi, Thank you for the pull request and sorry for waiting so long to reply... Was busy with work. I do have one issue with you PR. The signature of the 'process' method changes in a non backward compatible way. If it is unavoidable, could you add a note in the README file to highlight the changes and give a short explanation as to why it was necessary. I do not have a way to test those extended commands, but what tests I did seem to work. Cheers, |
You're right. It seems this project is also used in others, e.g. python-bluezero. Breaking any, inclusive of other |
On some devices, observed on RTL8822CE and Intel AX201, issue 5.0 LE commands while bluetoothd has preconfigured 5.1 LE extended commands may cause Command Disallowed error and fails following scan:
This pull request adds HCI_Read_Local_Supported_Commands, HCI_LE_Set_Extended_Scan_Params and HCI_LE_Set_Extended_Scan_Enable to the support list and refactor a bit to ensure all further commands will only be issued after full initialized.