eukub
5b536d00ab
сhanged concatenation of strings to f-strings to improve readability and unify with the rest of code
2023-12-28 16:27:36 +03:00
skarnataki
0b314bd7f7
Updated absctract class and method for on_ctrl_pdu in hid.py
2023-12-18 13:36:25 +00:00
skarnataki
9da2e32ad7
Review comment Fix 3 - rename json file and usage of Optional in parameters
2023-12-15 09:42:57 +00:00
skarnataki
5e3ecb74e4
Review comment fix -2
2023-12-05 13:41:30 +00:00
skarnataki
403a13e4c6
Review comment fix HID device
2023-11-28 13:42:25 +00:00
skarnataki
07f71fc895
Project format and lint error fix. Redefination if Device class needs to be discussed
2023-11-27 13:04:54 +00:00
Fahad Afroze
f47b9178ad
Added GET_REPORT and SET_REPORT changes
...
Added changes to handle invalid cases
2023-11-27 11:55:35 +00:00
skarnataki
9324237828
send_data comment fix and lint error fix
2023-11-24 11:13:20 +00:00
Fahad Afroze
d1033c018a
Modified DeviceData class
2023-11-24 05:42:31 +00:00
Fahad Afroze
0f29052ade
Added mousemove changes
...
Also modified keyboard data on keyup
2023-11-23 17:46:55 +00:00
skarnataki
0578e84586
Menu and name change review comments fix
2023-11-23 15:43:22 +00:00
dhavan
dc18595c8a
MTU size check added
2023-11-23 05:17:44 +00:00
dhavan
d6cefdff8e
Renamed the status message class
2023-11-22 17:14:24 +00:00
dhavan
dc410b14c4
SET_REPORT and GET_REPORT implemented
2023-11-22 16:05:33 +00:00
dhavan
4c49ef9403
SET_REPORT implemented
2023-11-22 12:31:34 +00:00
dhavan
ba85dcbda5
Get the changes from hid_device to bumble_hid_device
...
Modified the get_report_cb
2023-11-22 11:06:27 +00:00
Josh Wu
db2a2e2bb9
Cleanup HID module
...
* Remove unused imports
* Replace typing exceptions by better assertions
2023-11-17 17:43:07 +08:00
skarnataki
3ab64ce00d
Fixed lint and pre-commit errors.
2023-10-19 17:19:49 -07:00
skarnataki
651e44e0b6
Submitting review comment fix: header function and extra lines.
...
Executed formatter on file.
2023-10-19 17:19:49 -07:00
skarnataki
963fa41a49
Submitting review comment fix: header function and extra lines.
2023-10-19 17:19:49 -07:00
skarnataki
493f4f8b95
Submitting review comment fix: header function and spacing
2023-10-19 17:19:49 -07:00
skarnataki
fc1bf36ace
Review changes comment fix. Classes/Subclass/dataclass. Enum constants.
...
Naming conventions
2023-10-19 17:19:49 -07:00
skarnataki
5ddee17411
Commit to fix review comments for dataclass and subclass, shifting contants to Message Class
...
Commit for enum and dataclass
2023-10-19 17:19:49 -07:00
skarnataki
5ce353bcde
Review comment Fix
2023-10-19 17:19:49 -07:00
SneKarnataki
e02303a448
Submitting the initial version of HID Profile files
...
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.
2023-10-19 17:19:49 -07:00
dhavan
b7cd451ddb
Hid profile implemenation. Empty file
2023-10-19 17:19:49 -07:00