zxzxwu
d8e6700611
Merge pull request #383 from zxzxwu/controller
...
Controller: SCO implementation
2024-01-09 09:39:13 +08:00
Josh Wu
8d46bc04d2
Controller: SCO implementation
2023-12-30 14:22:58 +08:00
Gilles Boccon-Gibod
47fe93a148
support per-transport ACL queues
2023-12-22 13:52:33 -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
d6afbc6f4e
Fix ISO packet issues
2023-12-04 20:31:11 +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
Gilles Boccon-Gibod
9c7089c8ff
terminate when unplugged
2023-11-19 11:36:38 -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
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
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
78a06ae8cf
make implementation match the doc
2023-09-21 19:01:40 -07: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
Josh Wu
f39f5f531c
Replace | typing usage with Optional and Union
2023-09-12 15:50:51 +08:00
Josh Wu
548d5597c0
Transport: Add termination protocol signature
2023-09-11 14:36:40 +08:00
Josh Wu
b312170d5f
Typing transport
2023-09-08 15:27:01 +08:00
Gilles Boccon-Gibod
952d351c00
Merge pull request #247 from google/gbg/wasm-with-ws
...
wasm with ws
2023-08-28 08:40:18 -07:00
Gilles Boccon-Gibod
640b9cd53a
refactor pyiodide support and add examples
2023-08-15 13:36:58 -07:00
Gilles Boccon-Gibod
2bfec3c4ed
add sink method for lost transports
2023-08-12 10:54:20 -07:00
Gilles Boccon-Gibod
852c933c92
wip (+4 squashed commits)
...
Squashed commits:
[d29a350] wip
[7f541ed] wip
[1e2902e] basic working version
[14b497a] wip
2023-07-11 06:41:34 -07:00
Gilles Boccon-Gibod
4ffc14482f
fix call to is_dir()
2023-05-02 11:48:34 -07:00
Gilles Boccon-Gibod
63794981b7
fix format
2023-05-02 11:15:07 -07:00
Gilles Boccon-Gibod
5f86cddc85
cleanup doc (+6 squashed commits)
...
Squashed commits:
[6b97b93] add gRPC publish support for netsim
[439717b] fix doc
[5f679d7] fix linting and type errors
[ca7b734] merge 2
[f29c909] update docs
[7800ef9] cleanup (+5 squashed commits)
Squashed commits:
[c501eac] update to latest protos
[e51a3fb] wip
[d6a58fc] wip
[eaa9fa6] wip
[68d9490] wip
wip
wip
wip
update to latest protos
cleanup
2023-05-02 10:45:36 -07:00
Gilles Boccon-Gibod
dc3ac3060e
add auto-snooping for transports
2023-03-20 11:06:50 -07:00
uael
0594eaef09
link: make websockets import lazy
2023-02-23 21:06:12 +00:00
uael
d21da78aa3
overall: host a minimal copy of ainsicolors
2023-02-23 20:53:06 +00:00
uael
b731f6f556
overall: add types hints to the small subset used by avatar
2023-02-02 19:37:55 +00:00
Gilles Boccon-Gibod
99758e4b7d
add basic support for mypy type checking
2023-01-20 00:20:50 -08:00
Lucas Abel
8a91c614c7
Merge pull request #109 from qiaoccolato/main
...
transport: make libusb_package optional
2023-01-18 14:48:05 -08:00
Qiao Yang
70a50a74b7
transport: make libusb_package optional
2023-01-17 15:17:11 -08:00
Aleksandr Aleksandrov
e37c77532b
hci_socket.py: fix socket.fileno() call
2023-01-11 16:16:45 +03:00
Gilles Boccon-Gibod
6e0129b71d
fix libusb loading on Windows
2022-12-18 22:00:26 -08:00
Gilles Boccon-Gibod
c2959dadb4
formatting and linting automation
...
Squashed commits:
[cd479ba] formatting and linting automation
[7fbfabb] formatting and linting automation
[c4f9505] fix after rebase
[f506ad4] rename job
[441d517] update doc (+7 squashed commits)
[2e1b416] fix invoke and github action
[6ae5bb4] doc for git blame
[44b5461] add GitHub action
[b07474f] add docs
[4cd9a6f] more linter fixes
[db71901] wip
[540dc88] wip
2022-12-15 23:07:17 -08:00
Michael Mogenson
86f9496575
Load libusb-1.0 shared library from libusb_package wheel
...
It would be nice to pip install bumble without having to first install
the libusb system dependency. Expecially on platforms like Windows and
Mac, without a default package manager.
The libusb_package Python package distributes prebuilt libusb-1.0 shared
libraries for each OS and architecture as binary wheels for the pyusb
project. Add this package as a dependency for bumble.
For the pyusb transport, the libusb_package.find() function is a drop-in
replacement for pyusb.core.find(). It searches the libusb_package
site-path before system paths and creates a pyusb backend.
For the usb transport, use libusb_package.get_library_path() to return a
path to the libusb-1.0 library in site-packages. If this path exists,
create a ctypes DLL and init the usb1 backend. This only needs to be
done once. All future calls to usb1 will use this opened library.
If the library path does not exist, do nothing, and usb1 will search
default system paths when the usb1.USBContext object is created.
This commit pins the libusb_package dependency at 1.0.26.0 to ensure
every bumble install uses the exact same version of the libusb library.
2022-12-15 10:22:02 -05:00
Gilles Boccon-Gibod
135df0dcc0
format with Black
2022-12-10 09:40:12 -08:00
Gilles Boccon-Gibod
9e5a85bd10
use libusb auto-detach feature
2022-11-25 17:52:13 -08:00
Gilles Boccon-Gibod
ce9004f0ac
Add L2CAP CoC support (squashed)
...
[85542e0] fix test
[3748781] add ASAH sink example
[e782e29] add app
[83daa30] wip
[7f138a0] add test
[f732108] allow different address syntax
[9d0bbf8] rename deprecated methods
[eb303d5] add LE CoC support
2022-11-07 16:45:37 -08:00
Gilles Boccon-Gibod
d6c4644b23
reorder the order of printing
2022-10-06 10:40:28 -07:00
Gilles Boccon-Gibod
d2227f017f
improve USB device detection logic
2022-10-04 09:59:48 -07:00
Gilles Boccon-Gibod
db5e52f1df
add support for alternate settings
2022-09-20 22:25:40 -07:00
Gilles Boccon-Gibod
d7da5a9379
add support for dynamic discovery of USB endpoints
2022-09-20 16:39:12 -07:00
Gilles Boccon-Gibod
84d70ad4f3
add usb_probe tool and improve compatibility ( #33 )
...
* add usb_probe tool and improve compatibility with older/non-compliant devices
* fix logic test
* add doc
2022-08-26 12:41:55 -07:00
Jayson Messenger
925d79491f
Use threadsafe call when setting event_loop_done
...
Previously, the close method would hang waiting on the future to be
done.
2022-06-23 15:19:05 -04:00
Gilles Boccon-Gibod
01492d510c
close device inside for loop
2022-06-03 19:53:26 -07:00
Gilles Boccon-Gibod
86ded3fece
support selecting usb device by serial number
2022-05-29 16:30:05 -07:00
Gilles Boccon-Gibod
6ac91f7dec
initial import
2022-05-16 19:42:31 -07:00