Gilles Boccon-Gibod
7e854efbbb
support more commands in controller.py
2023-01-06 21:51:47 -08:00
Yuyang Huang
64b75be29b
add psm parameter for testing support
2023-01-03 16:39:45 -08:00
Yuyang Huang
06018211fe
emit event for ASHA l2cap packet
2023-01-03 15:01:32 -08:00
Yuyang Huang
e640991608
Merge branch 'google:main' into yuyangh/add_ASHA_L2CAP
2023-01-03 14:58:37 -08:00
Yuyang Huang
1068a6858d
improve logging
2022-12-20 13:33:18 -08:00
Lucas Abel
17db5dd4ff
Merge pull request #103 from google/uael/device-fixes
...
Misc device fixes
2022-12-20 12:15:49 -08:00
Abel Lucas
ea0a7e2347
device: commit LE connection **before** reading it's PHY
2022-12-20 19:25:43 +00:00
Yuyang Huang
6febd1ba35
add L2CAP CoC to ASHA
2022-12-20 11:15:58 -08:00
Gilles Boccon-Gibod
ea6a8d4339
Merge pull request #104 from google/gbg/fix-windll-load
...
fix libusb loading on Windows
v0.0.136
2022-12-20 08:05:57 -08:00
Abel Lucas
ce049865a4
device: always prefer R2 for remote name request
2022-12-20 01:48:08 +00:00
Gilles Boccon-Gibod
6e0129b71d
fix libusb loading on Windows
2022-12-18 22:00:26 -08:00
Gilles Boccon-Gibod
7ae3a1d973
Merge pull request #101 from google/gbg/formatting-linting-automation
...
formatting linting automation
v0.0.135
2022-12-16 19:39:28 -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
80fe2ea422
Merge pull request #102 from mogenson/libusb_package
...
Load libusb-1.0 shared library from libusb_package wheel
2022-12-15 21:53:56 -05:00
Lucas Abel
08e6590a76
Merge pull request #88 from google/uael/abort_on_event
...
Host: spawn each asynchronous task with the right aliveness
2022-12-15 12:46:37 -08:00
Abel Lucas
f580ffcbc3
device: set as Secure Connection when encrypted with AES
2022-12-15 17:02:21 +00:00
Abel Lucas
5178c866ac
classic: add to .encrypt the possibilty to disable encryption
2022-12-15 17:02:21 +00:00
Abel Lucas
441933bd64
reverted: 662704e "classic: complete authentication when being the .authenticate acceptor"
2022-12-15 17:02:21 +00:00
Abel Lucas
287df94090
host: spawn each asynchronous task with the right aliveness
2022-12-15 17:02:21 +00: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
f5fe3d87f2
Merge pull request #98 from yuyangh/yuyangh/update_asha_advertising
...
update ASHA AdvertisingData
2022-12-12 15:23:47 -08:00
Yuyang Huang
f65bed2ec4
Merge branch 'main' into yuyangh/update_asha_advertising
2022-12-12 13:35:17 -08:00
Gilles Boccon-Gibod
3efe35065d
Merge pull request #96 from google/gbg/black
...
format with Black
2022-12-12 13:27:58 -08:00
Yuyang Huang
83b42488ea
update ASHA AdvertisingData
...
previously the ASHA AdvertisingData uses INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS, now it lets user to define whether it is complete list or incomplete list
2022-12-12 11:42:48 -08:00
Gilles Boccon-Gibod
135df0dcc0
format with Black
2022-12-10 09:40:12 -08:00
Gilles Boccon-Gibod
8bef344879
Merge pull request #94 from AlanRosenthal/alan/bumble_version_in_show_device
...
Add bumble's version to `show device`
2022-12-10 09:00:30 -08:00
Alan Rosenthal
55e2f23e29
Add bumble's version to show device
2022-12-09 12:23:45 -05:00
Gilles Boccon-Gibod
297246fa4c
Merge pull request #92 from yuyangh/yuyangh/add_ASHA_GATT
...
add ASHA profile
v0.0.134
2022-12-07 13:16:01 -08:00
Yuyang Huang
52db1cfcc1
improve code style
2022-12-06 07:38:05 -08:00
Yuyang Huang
29f9a79502
improve get service advertising data
2022-12-05 11:22:07 -08:00
Gilles Boccon-Gibod
c86125de4f
Merge pull request #93 from AlanRosenthal/alan/add_default_services
...
Add Device::add_default_services()
v0.0.133
2022-12-01 12:36:03 -08:00
Yuyang Huang
697d5df3f8
code style update
2022-12-01 10:50:15 -08:00
Yuyang Huang
87aa4f617e
add ASHA advertising factory method
2022-12-01 10:40:30 -08:00
Alan Rosenthal
a8eff737e6
Add Device::add_default_services()
...
This will allow a test to:
a: add services to a device
b: reset services via `Server()`
c: add the default services back
2022-12-01 17:02:54 +00:00
Gilles Boccon-Gibod
4417eb636c
Merge pull request #83 from AlanRosenthal/alan/pytest_fixes_2
...
Test all python versions in CI
2022-11-29 12:48:35 -08:00
Alan Rosenthal
f4e5e61bbb
Test all python versions in CI
...
Followed instructions here: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#using-the-python-starter-workflow
2022-11-29 20:22:56 +00:00
Lucas Abel
ba7a60025f
Merge pull request #89 from google/uael/misc
...
Typos & CI fixes
2022-11-29 12:14:03 -08:00
Yuyang Huang
d92b7e9b74
add ASHA Profile
2022-11-29 10:34:59 -08:00
Yuyang Huang
b0336adf1c
add ASHA GATT UUID
2022-11-29 10:02:40 -08:00
Abel Lucas
691450c7de
gatt: fix CharacteristicDeclaration.__str__ and associated test
2022-11-29 16:43:47 +00:00
Abel Lucas
99a0eb21c1
address: fix deprecated use of combined @classmethod and @property
2022-11-29 16:33:12 +00:00
Abel Lucas
ab4859bd94
device: fix typos
2022-11-29 16:33:12 +00:00
Lucas Abel
0d70cbde64
Merge pull request #75 from google/uael/fixes
...
Pairing: device/host fixes & improvements
2022-11-28 21:42:43 -08:00
Gilles Boccon-Gibod
f41d0682b2
Merge pull request #80 from AlanRosenthal/alan/gatt_server_getter
...
Added class CharacteristicDeclaration, gatt_server getters
2022-11-28 19:21:08 -08:00
Gilles Boccon-Gibod
062dc1e53d
Merge pull request #85 from AlanRosenthal/alan/gatt_server_console2
...
Add `bumble-console --device-config` support for gatt services
2022-11-28 19:19:25 -08:00
Abel Lucas
662704e551
classic: complete authentication when being the .authenticate acceptor
2022-11-29 00:28:39 +00:00
Abel Lucas
02a474c44e
smp: emit enough information on pairing complete to deduce security level
2022-11-29 00:28:38 +00:00
Abel Lucas
a1c7aec492
device: fix .find_connection_by_bd_addr
2022-11-29 00:28:38 +00:00
Abel Lucas
6112f00049
device: introduce BR/EDR pending connections
...
This commit enable the BR/EDR pairing to run asynchronously to
the connection being established.
When in security mode 3, a controller shall start authentication as
part of the connection, which result in HCI events being sent on a BD
address without a completed connection (ie. no connection handle).
2022-11-29 00:28:38 +00:00
Alan Rosenthal
f56ac14f2c
Add bumble-console --device-config support for gatt services
...
This PR adds support for bumble-console to be preloaded with gatt services via `--device-config`.
This PR also adds some type annotations
2022-11-28 14:11:27 -05:00