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
Gilles Boccon-Gibod
5b173cb879
add constant for 5.4
2023-10-11 17:47:21 -07:00
Josh Wu
5a85765360
Cleanup legacy L2CAP API
2023-10-11 14:33:44 +08:00
Gilles Boccon-Gibod
b9476be9ad
Merge pull request #315 from google/gbg/company-ids
...
update to latest list of company ids
2023-10-10 22:13:16 -07:00
Gabriel White-Vega
1051648ffb
Add support for extended advertising via Rust-only API
...
* Extended functionality is gated on an "unstable" feature
* Designed for very simple use and minimal interferance with existing legacy implementation
* Intended to be temporary, until bumble can integrate extended advertising into its core functionality
* Dropped `HciCommandWrapper` in favor of using bumble's `HCI_Command.from_bytes` for converting from PDL into bumble implementation
* Refactored Address and Device constructors to better match what the python constructors expect
2023-10-10 13:35:31 -04:00
zxzxwu
c2bf6b5f13
Merge pull request #289 from zxzxwu/l2cap_refactor
...
Refactor L2CAP API
2023-10-09 23:27:25 +08:00
Gilles Boccon-Gibod
d8e699b588
use the new yaml file instead of the previous CSV file
2023-10-07 23:10:49 -07:00
Josh Wu
c8b2804446
Pandora: Handle exception in WaitSecurity()
2023-10-07 21:17:01 +08:00
Josh Wu
e732f2589f
Refactor L2CAP API
2023-10-07 20:01:15 +08:00
Josh Wu
e03d90ca57
Add typing for MediaCodecCapabilities members
2023-10-07 19:32:19 +08:00
Josh Wu
495ce62d9c
Typing AVDTP
2023-10-07 19:32:19 +08:00
Gilles Boccon-Gibod
80db9e2e2f
Merge pull request #303 from whitevegagabriel/hci-command-rs
...
Ability to send HCI commands from Rust
2023-10-02 12:12:05 -07:00
Gilles Boccon-Gibod
9bcdf860f4
don't delete advertising prefs on disconnection
2023-09-30 17:41:18 -07:00
Gabriel White-Vega
511ab4b630
Add python async wrapper, move hci non-wrapper to internal, add hci::internal tests
2023-09-29 10:23:19 -04:00
Gilles Boccon-Gibod
c0c6f3329d
minor cleanup
2023-09-27 21:53:54 -07:00
Gilles Boccon-Gibod
406a932467
make grpc channels injectable
2023-09-27 21:37:36 -07:00
Sparkling Diva
c6cdca8923
device: return the psm value from register_l2cap
2023-09-27 16:41:38 -07:00
Josh Wu
9f0bcc131f
eSCO support
2023-09-27 23:30:17 +08:00
Gabriel White-Vega
7e331c2944
Ability to send HCI commands from Rust
...
* Autogenerate packet code in Rust from PDL (packet file copied from rootcanal)
* Implement parsing of packets that have a type header
* Expose Python APIs for sending HCI commands
* Expose Python APIs for instantiating a local controller
2023-09-27 11:17:47 -04:00
Gilles Boccon-Gibod
1ad84ad51c
fix linter errors
2023-09-22 15:08:10 -07:00
Gilles Boccon-Gibod
64937c3f77
support netsim instance numbers
2023-09-22 14:22:04 -07:00
Gilles Boccon-Gibod
4c29a16271
Merge pull request #297 from google/gbg/websocket-full-url
...
ws-client: make implementation match the doc
2023-09-22 11:41:24 -07:00
Gilles Boccon-Gibod
762d3e92de
Merge pull request #300 from google/gbg/issue-299
...
use correct own_address_type when restarting advertising
2023-09-22 11:41:04 -07:00
uael
2f97531d78
pandora: use public identity address for public addresses
2023-09-22 20:08:34 +02:00
Gilles Boccon-Gibod
f6c7cae661
use correct own_address_type when restarting advertising
2023-09-22 10:33:36 -07:00
Gilles Boccon-Gibod
78a06ae8cf
make implementation match the doc
2023-09-21 19:01:40 -07:00
Josh Wu
e559744f32
Typing att
2023-09-21 15:52:07 +08:00
zxzxwu
67418e649a
Merge pull request #288 from zxzxwu/l2cap_states
...
L2CAP: Refactor states to enums
2023-09-21 15:42:21 +08:00
Josh Wu
2491b686fa
Handle SMP_Security_Request
2023-09-20 23:13:08 +02:00
Josh Wu
efd02b2f3e
Adopt reviews
2023-09-20 23:03:23 +02:00
Josh Wu
3b14078646
Overload signatures
2023-09-20 23:03:23 +02:00
Josh Wu
45f60edbb6
Pyee watcher context
2023-09-20 23:03:23 +02:00
Josh Wu
5d9598ea51
L2CAP: Refactor states to enums
2023-09-14 20:52:33 +08:00
Gilles Boccon-Gibod
32626573a6
ignore false positive errors
2023-09-13 23:17:00 -07:00
zxzxwu
4ed5bb5a9e
Merge pull request #281 from zxzxwu/cleanup-transport
...
Replace | typing usage with Optional and Union
2023-09-13 13:31:41 +08:00
William Escande
783b2d70a5
Add connection parameter update from peripheral
2023-09-12 11:08:04 -07:00
zxzxwu
80824f3fc1
Merge pull request #280 from zxzxwu/device_typing
...
Add terminated to TransportSource protocol
2023-09-12 20:46:35 +08:00
Josh Wu
f39f5f531c
Replace | typing usage with Optional and Union
2023-09-12 15:50:51 +08:00
Michael Mogenson
da02f6a39b
Add HCI Zephyr vendor commands to read and write TX power
...
Create platforms/zephyr/hci.py with definitions of vendor HCI commands
to read and write TX power.
Add documentation for how to prepare an nRF52840 dongle with a Zephyr
HCI USB firmware application that includes dynamic TX power support and
how to send a write TX power vendor HCI command from Bumble.
2023-09-11 10:06:10 -04:00
Josh Wu
548d5597c0
Transport: Add termination protocol signature
2023-09-11 14:36:40 +08:00
zxzxwu
01603ca9e4
Merge pull request #271 from zxzxwu/device_typing
...
Typing transport and relateds
2023-09-09 00:55:59 +08:00
Gilles Boccon-Gibod
a1b6eb61f2
Merge pull request #269 from google/gbg/android_vendor_hci
...
add support for vendor HCI commands and events
2023-09-08 08:50:49 -07:00
Josh Wu
41fe63df06
Fix typos
2023-09-08 16:30:06 +08:00
Josh Wu
b312170d5f
Typing transport
2023-09-08 15:27:01 +08:00
David Duarte
cf7f2e8f44
Make platformdirs import lazy
...
platformdirs is not available in Android
2023-09-07 21:13:29 -07:00
Gilles Boccon-Gibod
d292083ed1
Merge pull request #272 from zxzxwu/gfp
...
Bring HfpProtocol back
2023-09-07 13:03:36 -07:00
Gilles Boccon-Gibod
9b11142b45
Merge pull request #267 from google/gbg/rfcomm-with-uuid
...
rfcomm with UUID
2023-09-07 13:01:56 -07:00
Hui Peng
acdbc4d7b9
Raise an exception when an L2cap connection fails
2023-09-07 19:24:38 +02:00
Josh Wu
3852aa056b
Bring HfpProtocol back
2023-09-07 23:20:09 +08:00