Gilles Boccon-Gibod
ad7ce79bc4
use all caps for device kind
2024-10-22 16:30:46 -07:00
Gilles Boccon-Gibod
7584daa3f9
update to new netsim proto with DeviceInfo
2024-10-22 11:48:42 -07:00
initializedd
d069708c79
Support netsim.ini tmpdir on linux
2024-09-27 19:25:49 +01:00
Slvr
bdba5c9d95
pyusb: check devices_in_use before removal ( #559 )
2024-09-24 13:40:58 -07:00
Charlie Boutier
4a691c11d4
pyusb: allow to detect multiple usb dongle
...
Allow to detect multiple usb dongle by just provind the pid/vid
2024-08-23 08:22:43 -07:00
Gilles Boccon-Gibod
a311c3f723
hotfix for usb transport
2024-08-22 22:26:44 -07:00
Gilles Boccon-Gibod
f3b776c343
wip
2024-08-12 08:31:37 -07:00
Gilles Boccon-Gibod
a0b5606047
don't user a parser for a usb source
2024-08-11 20:57:45 -07:00
Gilles Boccon-Gibod
1c278bec93
Merge pull request #518 from google/gbg/usb-queue
...
USB: better packet queue logic
2024-07-18 12:51:00 -07:00
Gilles Boccon-Gibod
6a51166af7
better packet queue logic
2024-07-17 17:48:26 -07:00
Josh Wu
881a5a64b5
Add UNIX socket transport
2024-07-17 00:41:04 +08:00
Josh Wu
f8a2d4f0e0
Reorganize exceptions
...
* Add BaseBumbleException as a "real" root error
* Add several core error classes and properly replace builtin errors
with them
* Add several error classes for specific modules (transport, device)
2024-06-11 16:13:08 +08:00
Charlie Boutier
28e6229b24
Fix: Preserve transport metadata
...
Preserve transport metadata when wrapping with SnoopingTransport
2024-05-28 09:20:53 -07:00
Charlie Boutier
71df062e07
pyusb: power_cycle if '!' is present at the start of the transport
2024-04-17 14:12:55 -07:00
Charlie Boutier
049f9021e9
pyusb: powercycle the dongle
2024-04-17 14:12:55 -07:00
Josh Wu
21d607898d
Fix format presubmit error
2024-04-09 01:44:04 +08:00
Gilles Boccon-Gibod
2698d4534e
Merge pull request #435 from jeru/main
...
open_tcp_server_transport: allow explicit sock as input.
2024-04-04 19:17:07 -07:00
Gilles Boccon-Gibod
58d4ab913a
update black formatter to version 24
2024-04-01 14:44:46 -07:00
Charlie Boutier
e8ed69fb09
pyusb: Collect vendorId and productId as metadata
2024-03-15 10:53:33 -07:00
David Duarte
16d5cf6770
usb: Add usb path moniker
...
Add a new moniker for usb and pyusb driver allowing
to select the usb device using its bus id and port
path like `usb:3-3.4.1`.
2024-03-15 09:17:39 -07:00
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
Gilles Boccon-Gibod
54f2981267
fix uninitialized variable
2024-01-16 16:49:06 -08:00
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