Michael Mogenson
d6bbc1145a
apps: Add a controller loopback throughput test app
...
Add a command line utility to open a transport to a BT controller, put
the controller into local loopback mode, and send and receive ACL data
packets. Record the time it takes to send and receive all packets and
calculate a throughput measurement in kB/s.
This utility is usefull for characterizing the speed of a transport to a
BT controller (such as a TCP socket or serial port) without having to
deal with a connected peer or the variability of over the air
transmissions.
The transport CLI argument is required. The packet size and packet
count arguments are optional. They default to the same values as the
bumble-bench app.
2024-01-05 10:01:24 -05:00
Gilles Boccon-Gibod
a286700239
Merge pull request #368 from google/gbg/driver-load-before-reset
...
support drivers that can't use reset directly.
2023-12-11 18:06:23 -08:00
Gilles Boccon-Gibod
98ed772e8a
address PR comments and add some typing
2023-12-11 17:52:04 -08:00
Josh Wu
f911163e49
Improve ASCS logging
2023-12-12 00:36:24 +08:00
Gilles Boccon-Gibod
b083cc99ad
fix spec parsing
2023-12-08 18:57:02 -08:00
Gilles Boccon-Gibod
62a8ced447
support drivers that can't use reset directly.
2023-12-08 17:28:57 -08:00
Josh Wu
81a6b1e097
Replace 3.9 dict merger
2023-12-08 11:10:17 +08:00
Josh Wu
dd090c9e6b
Add ASCS tests
2023-12-08 11:00:44 +08:00
Josh Wu
11faa48422
Fix ASE state change
2023-12-08 09:53:14 +08:00
Josh Wu
4d6822d312
Remove ISO data path on release
2023-12-08 09:53:14 +08:00
Josh Wu
985c365e6d
Setup data path after CIS established
2023-12-08 09:53:14 +08:00
Josh Wu
af57762227
Parse CodecSpecificConfiguration
2023-12-08 09:53:14 +08:00
Josh Wu
3575f9030e
Add Audio Stream Control Service
2023-12-08 09:53:14 +08:00
Josh Wu
ff6528d2bf
Add Advertising unit tests
2023-12-08 01:38:01 +08:00
Josh Wu
72ac75a98d
Add advertiser classes and handle adv set terminated events
...
* Convert hci.OwnAddressType to enum
* Add LegacyAdvertiser and ExtendedAdvertiser classes
* Rename start/stop_advertising() => start/stop_legacy_advertising()
* Handle HCI_Advertising_Set_Terminated
* Properly restart advertisement on disconnection
2023-12-07 15:51:51 +08:00
zxzxwu
88b4cbdf1a
Merge pull request #364 from zxzxwu/iso
...
Fix ISO packet issues
2023-12-05 00:41:56 +08:00
Josh Wu
d6afbc6f4e
Fix ISO packet issues
2023-12-04 20:31:11 +08:00
Gilles Boccon-Gibod
843466c822
a few more constants from the spec
2023-12-03 17:16:25 -08:00
zxzxwu
3adcc8be09
Merge pull request #360 from zxzxwu/hci
...
Remove # type: ignore[call-arg] in HCI_Command builders
2023-12-03 19:18:04 +08:00
zxzxwu
c853d56302
Merge pull request #361 from zxzxwu/hci-bug
...
Fix typo
2023-12-03 04:22:59 +08:00
Josh Wu
dc97be5b35
Fix typo
2023-12-02 23:42:21 +08:00
Josh Wu
dff14e1258
Add Published Audio Capabilities Service
2023-12-02 23:16:37 +08:00
Josh Wu
10a3833893
Remove # type: ignore[call-arg] in HCI_Command builders
2023-12-02 19:18:54 +08:00
Josh Wu
3fc71a0266
Add variable-length bytes field
2023-12-01 03:16:52 +08:00
Josh Wu
f27015d1b7
Refactor CodingFormat
...
As CodingFormat is now used by HFP and LEA, and vendor specific codecs
are introduced, this object needs to provide more information.
2023-12-01 02:58:09 +08:00
zxzxwu
86a19b41aa
Merge pull request #344 from zxzxwu/cis
...
CIS and SCO responder support
2023-11-30 21:00:55 +08:00
Gilles Boccon-Gibod
320164d476
Merge pull request #355 from google/gbg/fix-gatt-unsubscribe
...
fix #354 (gatt unsubscribe)
2023-11-29 22:28:57 -08:00
Josh Wu
40ae661ee5
More SCO support and warnings and typo fix
2023-11-30 12:59:43 +08:00
Josh Wu
c5def93bb8
CIS and SCO responder support
2023-11-30 12:16:40 +08:00
zxzxwu
a9c4c5833d
Merge pull request #350 from zxzxwu/csip
...
Add Coordinated Set Identification Service(CSIS)
2023-11-30 12:15:56 +08:00
Gilles Boccon-Gibod
58c9c4f590
fix #354
2023-11-29 19:19:40 -08:00
zxzxwu
24524d88cb
Merge pull request #342 from zxzxwu/typing
...
Typing helper
2023-11-30 00:21:44 +08:00
zxzxwu
b8849ab311
Merge pull request #349 from zxzxwu/stack
...
Log track back in on_packet
2023-11-30 00:20:20 +08:00
Josh Wu
f3cd8f8ed0
Typing helper
2023-11-29 21:24:27 +08:00
zxzxwu
2b26de3f3a
Merge pull request #348 from zxzxwu/gattc
...
Typing GATT Client and Device Peer
2023-11-29 15:09:40 +08:00
Josh Wu
0149c4c212
Log track back in on_packet
...
Many errors are raised in on_packet() callbacks, but currently it only
provides a very brief error message.
2023-11-29 15:01:15 +08:00
Josh Wu
464a476f9f
Add CSIP
2023-11-29 14:09:31 +08:00
Gilles Boccon-Gibod
e85d067fb5
add a few uuids
2023-11-28 20:02:00 -08:00
Josh Wu
04d5bf3afc
Typing GATT Client and Device Peer
2023-11-28 21:57:57 +08:00
Josh Wu
863de18877
Add LE Audio GATT definitions
2023-11-27 17:53:00 +08:00
zxzxwu
f0e5cdee1a
Merge pull request #339 from zxzxwu/enc
...
Refactor crypto and fix CTKD
2023-11-27 14:05:37 +08:00
Josh Wu
a65a215fd7
Provide IntFlag.name property fallback
2023-11-26 19:42:22 +08:00
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
Lucas Abel
9bf2e03354
device: set authenticated and sc state on AES encryption change
2023-11-23 06:39:55 +01: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
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