Gilles Boccon-Gibod
5c6a7f2036
Merge pull request #113 from google/gbg/mypy
...
add basic support for mypy type checking
2023-01-20 08:08:19 -08:00
Gilles Boccon-Gibod
99758e4b7d
add basic support for mypy type checking
2023-01-20 00:20:50 -08:00
Alan Rosenthal
7385de6a69
Merge pull request #95 from AlanRosenthal/alan/fix_show_attributes
...
Fix `show attributes`
2023-01-19 14:57:22 -05:00
Alan Rosenthal
bb297e7516
Fix show attributes
...
`show attributes` wasn't being populated since `show_attributes()` was never called.
Also updated `show attributes` to match the color and indentation of `show services`
2023-01-19 12:21:37 -05: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
Gilles Boccon-Gibod
6a16c61c5f
Merge pull request #111 from google/gbg/fix-null-address-setting
...
don't set a random address when it is 00:00:00:00:00:00
v0.0.139
2023-01-13 21:35:32 -08:00
Gilles Boccon-Gibod
0a22f2f7c7
use HCI_LE_Rand
2023-01-13 16:59:34 -08:00
Gilles Boccon-Gibod
422b05ad51
don't set a random address when it is 00:00:00:00:00:00
2023-01-13 13:22:27 -08:00
Gilles Boccon-Gibod
16e926a216
Merge pull request #107 from yuyangh/yuyangh/add_ASHA_L2CAP
...
add ASHA L2CAP and Event Emitter
2023-01-13 11:05:16 -08:00
Gilles Boccon-Gibod
e94dc66d0c
Merge pull request #110 from aleksandrovrts/hci-socket_fix
...
Fix bug when use hci-socket transport
v0.0.138
2023-01-11 09:35:23 -08:00
Aleksandr Aleksandrov
e37c77532b
hci_socket.py: fix socket.fileno() call
2023-01-11 16:16:45 +03:00
Gilles Boccon-Gibod
8b9ce03e86
Merge pull request #108 from google/gbg/fix-bluez-vhci
...
support more commands in controller.py
v0.0.137
2023-01-08 14:40:26 -08:00
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