Cheng Sheng
1ceeccbbc0
open_tcp_server_transport: allow explicit sock as input.
...
When a user doesn't need an exact port, but cares more about getting
SOME unused port, they can do:
* Create a socket outside with port=None or port=0.
* Use socket.getsockname()[1] to get the allocated port and pass to the
TCP client somehow.
* Use the created socket to create a TCP server transport.
Use-case: unit-testing embedded software that implements a BLE host. The
controller will be a Bumble controller, connected to the host via a TCP
channel.
* The host will have a TCP-client HCI transport for testing.
* The pytest setup code will allocate the TCP server and pass the port
number to the host.
Also add some unittests with python mock.
2024-03-13 19:34:05 +01:00
Gilles Boccon-Gibod
f2d601f411
show timestamps from snoop logs
2024-02-27 16:40:37 -08:00
zxzxwu
02180088b3
Merge pull request #425 from zxzxwu/command
...
Refactor command supporting list
2024-02-07 21:45:52 +08:00
Josh Wu
0e6d69cd7b
Refactor command supporting list
2024-02-06 12:06:00 +08:00
Josh Wu
9eccc583d5
Fix double-disable legacy advertising set
...
When legacy advertising set is disabled passively(by set termination),
the legacy advertising set won't be released, and the next
stop_advertising() call will try to disable it again and cause an error.
2024-02-06 12:00:30 +08:00
Gilles Boccon-Gibod
a877283360
add rfcomm options and fix l2cap mtu negotiation
2024-02-05 08:56:59 -08:00
zxzxwu
1a3272d7ca
Merge pull request #412 from zxzxwu/vcp
...
Add Volume Control Service
2024-02-04 00:42:51 +08:00
zxzxwu
1ee1ff0b62
Merge pull request #420 from zxzxwu/rfc
...
Add RFCOMM and SDP context manager and search helper
2024-02-04 00:42:24 +08:00
Josh Wu
e308051885
Add LMP feature reader
2024-02-03 13:29:25 +08:00
Josh Wu
10e53553d7
Add RFCOMM and SDP helpers
2024-02-03 13:13:35 +08:00
Gilles Boccon-Gibod
ef0b30d059
Merge pull request #382 from google/gbg/extended-advertising-v2
...
extended advertising v2
2024-02-02 20:43:28 -08:00
zxzxwu
c6cfd101df
Merge pull request #415 from zxzxwu/hfp
...
HFP: State memory and event emission
2024-02-02 11:36:53 +08:00
Josh Wu
d2dcf063ee
HFP: State memory and event emit
2024-02-01 12:08:43 +08:00
Josh Wu
6a34c9f224
RFCOMM: Slightly refactor and correct constants
2024-02-01 01:18:56 +08:00
Josh Wu
3e8ce38eba
Add Volume Control Service
2024-01-31 10:04:30 +08:00
Gilles Boccon-Gibod
8d2f37aa7a
inclusive language
2024-01-28 19:09:39 -08:00
Gilles Boccon-Gibod
b7b70ebcbb
address PR comments
2024-01-28 19:09:37 -08:00
Gilles Boccon-Gibod
8ba91f4986
fix assert
2024-01-28 19:02:32 -08:00
Gilles Boccon-Gibod
79a5e953bc
comply with limits for certain advertising event types
2024-01-28 19:02:32 -08:00
Gilles Boccon-Gibod
20de5ea250
format
2024-01-28 19:02:32 -08:00
Gilles Boccon-Gibod
bad9ce272c
add doc
2024-01-28 19:02:32 -08:00
Gilles Boccon-Gibod
d3273ffa8c
format (+3 squashed commits)
...
Squashed commits:
[60e610f] wip
[eeab73d] wip
[3cdd5b8] basic first pass
2024-01-28 19:02:30 -08:00
zxzxwu
071fc2723a
Merge pull request #376 from zxzxwu/host
...
Manage lifecycle of CIS and SCO links in host
2024-01-28 22:09:08 +08:00
zxzxwu
ef4ea86f58
Merge pull request #381 from zxzxwu/offload
...
Support non-directed address generation offload
2024-01-28 22:08:32 +08:00
Gilles Boccon-Gibod
986343a807
support multiple type checkers for pandora
2024-01-28 01:21:50 -08:00
Gilles Boccon-Gibod
a167342778
deal with SupportsBytes for python <= 3.10
2024-01-28 01:04:13 -08:00
Gilles Boccon-Gibod
31ec1c41ce
cleanup
2024-01-28 00:07:31 -08:00
Gilles Boccon-Gibod
aba1ac0cea
use a dict instead of a series of ifs (+6 squashed commits)
...
Squashed commits:
[90f2024] fix import order
[0edd321] add a few docstrings
[77a0ac0] wip
[adcf159] wip
[96cbd67] wip
[d8bfbab] wip (+1 squashed commit)
Squashed commits:
[43b4d66] wip (+2 squashed commits)
Squashed commits:
[3dafaa8] wip
[5844026] wip (+1 squashed commit)
Squashed commits:
[4cbb35a] wip (+1 squashed commit)
Squashed commits:
[4d2b6d3] wip (+4 squashed commits)
Squashed commits:
[f2da510] wip
[318c119] wip
[923b4eb] wip
[9d46365] wip
use a dict instead of a series of ifs (+6 squashed commits)
Squashed commits:
[90f2024] fix import order
[0edd321] add a few docstrings
[77a0ac0] wip
[adcf159] wip
[96cbd67] wip
[d8bfbab] wip
2024-01-27 16:26:17 -08:00
Josh Wu
c40824e51c
Support non-directed address generation offload
2024-01-26 16:02:40 +08:00
Josh Wu
b4ae8af3a7
Typing Advertisement
2024-01-19 15:16:24 +08:00
Josh Wu
da60386385
Manage lifecycle of CIS and SCO links in host
2024-01-18 11:56:38 +08:00
zxzxwu
45c4c4f4c5
Merge pull request #404 from zxzxwu/cis
...
Fix HCI_LE_Set_Host_Feature_Command
2024-01-18 10:56:05 +08:00
zxzxwu
9187c75d68
Merge pull request #397 from zxzxwu/controller
...
Controller: CIS implementation
2024-01-18 10:55:37 +08:00
zxzxwu
abeec22546
Merge pull request #402 from zxzxwu/key
...
Save Link Key in CTKD over BR/EDR
2024-01-18 10:55:14 +08:00
Josh Wu
a6bab755cf
Fix HCI_LE_Set_Host_Feature_Command
2024-01-17 22:15:15 +08:00
Josh Wu
acd9d994c3
Save link_key in CTKD over BR/EDR
...
Since keystore.update() overwrites all existing keys, the existing link
key will be wiped out. To avoid this, SMP also need to keep the key.
2024-01-17 19:30:02 +08:00
Gilles Boccon-Gibod
54f2981267
fix uninitialized variable
2024-01-16 16:49:06 -08:00
Charlie Boutier
bb025514e7
PandoraHost: compute advertising_interval_max with interval_range
2024-01-12 14:36:22 -08:00
Charlie Boutier
e228597269
Pandora host: support advertising interval in advertise
2024-01-12 14:36:22 -08:00
Gilles Boccon-Gibod
95b0d6c6f2
Merge pull request #398 from google/gbg/rfcomm-no-sink
...
update credits even without a sink
2024-01-11 13:18:15 -08:00
Josh Wu
fa4df6e3a2
Controller: CIS implementation
2024-01-11 01:16:42 +08:00
Gilles Boccon-Gibod
30f89d5739
simplify
2024-01-09 18:01:34 -08:00
Gilles Boccon-Gibod
481cf40831
update credits even without a sink
2024-01-09 17:58:52 -08:00
Josh Wu
eff05afb7a
LE read remote features
2024-01-09 11:30:08 +08:00
zxzxwu
d8e6700611
Merge pull request #383 from zxzxwu/controller
...
Controller: SCO implementation
2024-01-09 09:39:13 +08:00
Michael Mogenson
c48e3f5e9c
Merge pull request #393 from mogenson/controller-loopback
...
apps: Add a controller loopback throughput test app
2024-01-05 13:13:30 -05:00
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
zxzxwu
e2fec67bd9
Merge pull request #390 from zxzxwu/csip
...
CSIP: Encrypted SIRK implementation
2024-01-04 13:28:23 +08:00
Josh Wu
88cb3b2a4d
IWYU in CSIP
2024-01-04 13:22:09 +08:00
Gilles Boccon-Gibod
80d84af76c
Merge pull request #392 from google/gbg/l2cap-drain
...
l2cap & rfcomm drain support
2024-01-03 09:59:36 -08:00