-
Notifications
You must be signed in to change notification settings - Fork 74
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
Bumble hid #295
Bumble hid #295
Conversation
Includes: 1. HID Host implementation - hid.py 2. HID application to test Host with 3rd party HID Device application - run_hid_host.py 3. HID supporting files for testing - hid_report_parser.py & hid_key_map.py Commands to run the application: Default application: python run_hid_host.py classic1.json usb:0 <device bd-addr> Menu options for testing (Get/Set): python run_hid_host.py classic1.json usb:0 <device bd-addr> test-mode CuttleFish:tcp-client:127.0.0.1:7300 Application used for testing as Device : Bluetooth Keyboard & Mouse-5.3.0.apk Note: Change in sdp.py file while testing hid profile, TEXT_STRING: lambda x: DataElement(DataElement.TEXT_STRING, x.decode('utf8')) changed to TEXT_STRING: lambda x: DataElement(DataElement.TEXT_STRING, x) as we were facing error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 4: invalid start byte" while fetching sdp records.
TEXT_STRING: lambda x: DataElement(DataElement.TEXT_STRING, x.decode('utf8')) changed to TEXT_STRING: lambda x: DataElement(DataElement.TEXT_STRING, x) as we were facing error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 4: invalid start byte" while fetching sdp records.
Hi zxzxwu, barbibulle, Thank you for your comment. We have checked-in the updated files in bumble_hid branch. Regards, |
…ntants to Message Class Commit for enum and dataclass
Naming conventions
Hi all, We have updated review comments. Regards, |
Hi barbibulle, Regards, |
This looks good, thanks. Please see a couple new (minor) comments I added as I was reading through the code again. Also, please run the formatter before this can be merged (see the output of the GitHub actions to see the pre-commit checks that failed). You can run the formatter by running Thanks. |
Thank you barbibulle. I was able to perform "invoke project.format". But I am unable to view "Please see a couple new (minor) comments I added as I was reading through the code again." comments in PR. |
Executed formatter on file.
Sorry about that, the two comments were pending and I forgot to send them. They should be visible now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 🎉
@SneKarnataki the "Code format and lint check" GitHub action still fails on this PR (a couple places where the typing needs to be fixed). Can you check the output of the GitHub action and fix the issue before we can merge? |
One more format issue 🙏 diff --git a/examples/hid_report_parser.py b/examples/hid_report_parser.py
index e5f407f..61561b3 100644
--- a/examples/hid_report_parser.py
+++ b/examples/hid_report_parser.py
@@ -139,7 +139,6 @@ class Mouse:
# ------------------------------------------------------------------------------
class ReportParser:
-
@staticmethod
def parse_input_report(input_report: bytes) -> None: |
Thank you all for guiding our first GitHub checkin and helping to make it optimized. Regards, |
Bumble HID Host implementation.