Josh Wu
80d34a226d
Slightly refactor and fix CTKD
...
It seems sample input data provided in the spec is big-endian (just
like other AES-CMAC-based functions), but all keys are in little-endian(
HCI standard), so they need to be reverse before and after applying
AES-CMAC.
2023-11-26 16:55:10 +08:00
Josh Wu
a9628f73e3
Add support for Extended Advertising
2023-11-26 15:03:09 +08: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
SneKarnataki
d4e8526766
Merge branch 'google:main' into bumble_hid_device
2023-11-23 07:59:43 +00:00
dhavan
515b83a8c7
deleted: bumble/classic3.json
...
modified: examples/keyboard.html
2023-11-23 06:10:52 +00:00
Lucas Abel
9bf2e03354
device: set authenticated and sc state on AES encryption change
2023-11-23 06:39:55 +01:00
dhavan
dc18595c8a
MTU size check added
2023-11-23 05:17:44 +00:00
SneKarnataki
488bcfe9c6
Merge branch 'google:main' into bumble_hid_device
2023-11-23 04:03:53 +00:00
Gilles Boccon-Gibod
2900b93bb3
Merge pull request #120 from google/gbg/usb-cleanup
...
minor cleanup of the internals of the usb transport implementation
2023-11-22 17:18:23 -08:00
Gilles Boccon-Gibod
268f6b0d51
remove unneeded constructor parameters
2023-11-22 15:30:18 -08:00
Gilles Boccon-Gibod
f9f5d7ccbd
first implementation (+1 squashed commit)
...
Squashed commits:
[ee00d67] wip
2023-11-22 15:30:16 -08: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
zxzxwu
e08c84dd20
Merge pull request #333 from zxzxwu/iso
...
Add ISO related HCI packets
2023-11-21 15:55:00 +08:00
Josh Wu
8b46136703
Add ISO related HCI packets
2023-11-20 22:47:02 +08:00
Gilles Boccon-Gibod
9c7089c8ff
terminate when unplugged
2023-11-19 11:36:38 -08:00
zxzxwu
42868b08d3
Merge pull request #335 from zxzxwu/a2dp
...
Typing A2DP
2023-11-18 00:21:20 +08:00
zxzxwu
19b61d9ac0
Merge pull request #336 from zxzxwu/hid
...
Cleanup HID module
2023-11-17 23:34:03 +08:00
Josh Wu
db2a2e2bb9
Cleanup HID module
...
* Remove unused imports
* Replace typing exceptions by better assertions
2023-11-17 17:43:07 +08:00
Josh Wu
e1fdb12647
Typing A2DP
2023-11-17 17:29:35 +08:00
Gilles Boccon-Gibod
a8ec1b0949
minor cleanup of the internals of the usb transport implementation
2023-11-15 17:26:21 -08:00
Gilles Boccon-Gibod
2e30b2de77
Merge pull request #329 from google/gbg/le-oob
...
le oob
2023-11-15 16:10:20 -08:00
Gilles Boccon-Gibod
7e407ccae1
address PR comments
2023-11-15 15:48:19 -08:00
zxzxwu
0667e83919
Merge pull request #254 from zxzxwu/sco
...
eSCO codec/HCI definitions + Host support
2023-11-13 20:01:06 +08:00
Gilles Boccon-Gibod
14f5b912ad
use ad_data directly
2023-11-10 11:53:54 -08:00
Gilles Boccon-Gibod
46d6242171
Merge pull request #316 from whitevegagabriel/extended
...
Add support for extended advertising via Rust-only API
2023-11-09 13:43:00 -08:00
Gilles Boccon-Gibod
753b966148
format
2023-11-09 12:44:02 -08:00
Gilles Boccon-Gibod
5a307c19b8
add oob data on command line
2023-11-07 20:38:35 -08:00
Lucas Abel
2cd4f84800
pandora: add annotations import
2023-11-06 14:06:56 -08:00
Gilles Boccon-Gibod
4ae612090b
wip
2023-11-06 13:19:13 -08:00
Gilles Boccon-Gibod
99bc92d53d
wip (+5 squashed commits)
...
Squashed commits:
[53c6c53] wip
[66f482c] wip
[b003315] wip
[f6f9d9e] wip
[4c95c7b] wip
2023-10-29 08:50:25 -07:00
Josh Wu
72199f5615
Add address resolution offload to config
2023-10-24 17:04:43 -07: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
16d33199eb
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
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
skarnataki
644f74400d
Trial to commit in dhavan repo
2023-10-19 17:19:49 -07:00
dhavan
b7cd451ddb
Hid profile implemenation. Empty file
2023-10-19 17:19:49 -07:00
Gabriel White-Vega
59d7717963
Remove mutable ret pattern and test feature combinations
...
After adding test for feature combinations, I found a corner case where, when Transport is dropped and the process is terminated in a test, the `close` Python future is not awaited.
I don't know what other situations this issue may arise, so I have safe-guarded it via `block_on` instead of spawning a thread.
2023-10-18 15:39:37 -04:00
zxzxwu
907f2acc7e
Merge pull request #318 from zxzxwu/l2cap_refactor
...
Cleanup legacy L2CAP API usage
2023-10-17 14:22:45 +08:00