Gilles Boccon-Gibod
867e8c13dc
lower the number of test cases for l2cap in order to speed up the test
2022-11-14 17:26:09 -08:00
Lucas Abel
25ce38c3f5
Merge pull request #72 from google/uael/public-str-address
...
address: add public information to the stringified value
2022-11-14 17:16:47 -08:00
Abel Lucas
c0810230a6
address: add public information to the stringified value
...
This affect the way security keys are stored. For instance the same
key can be used both as public and random, and it need to be stored
separately one from each other.
2022-11-14 20:05:12 +00:00
Michael Mogenson
27c46eef9d
Merge pull request #71 from mogenson/prefer-notify
...
Add prefer_notify option to gatt_client subscribe()
2022-11-13 19:53:09 -05:00
Michael Mogenson
c140876157
Add prefer_notify option to gatt_client subscribe()
...
If characteristic supports Notify and Indicate, the prefer_notify option
will subscribe with Notify if True or Indicate if False.
If characteristic only supports one property, Notify or Indicate, that
mode will be selected, regardless of the prefer_notify setting.
Tested with a characteristic that supports both Notify and Indicate and
verified that prefer_notify sets the desired mode.
2022-11-13 19:38:12 -05:00
Lucas Abel
d743656f09
Merge pull request #68 from google/uael/pairing-improvements
...
Pairing improvements
2022-11-11 21:03:17 -08:00
Abel Lucas
b91d0e24c1
device: handle HCI passkey notification event
2022-11-11 18:43:35 +00:00
Abel Lucas
eb46f60c87
le: save own_address_type on ACL connection for SMP to be able to use the right self address
2022-11-10 02:06:37 +00:00
Abel Lucas
8bbba7c84c
pairing: always ask user for confirmation, even in JUST_WORKS method
2022-11-10 01:58:02 +00:00
Gilles Boccon-Gibod
ee54df2d08
Merge pull request #65 from google/gbg/fix-classic-connect-await
...
fix classic connection event filtering
2022-11-09 14:40:29 -08:00
Gilles Boccon-Gibod
6549e53398
Merge pull request #60 from google/gbg/fix-console-logs
...
use a formatter object, not a string
2022-11-09 13:19:26 -08:00
Gilles Boccon-Gibod
0f219eff12
address PR comments
2022-11-09 13:18:30 -08:00
Gilles Boccon-Gibod
4a1345cf95
only force the type if the address is passed as a string
2022-11-08 19:10:13 -08:00
Gilles Boccon-Gibod
8a1cdef152
fix classic connection event filtering
2022-11-08 17:33:29 -08:00
Gilles Boccon-Gibod
6e1baf0344
use a formatter object, not a string
2022-11-08 13:19:41 -08:00
Lucas Abel
cea1905ffb
Merge pull request #59 from google/uael/device-cleanup
...
le: pass `own_address_type` to BLE `Device.connect`
2022-11-08 11:50:40 -08:00
Abel Lucas
af8e0d4dc7
le: pass own_address_type to BLE Device.connect
2022-11-08 18:22:54 +00:00
Gilles Boccon-Gibod
875195aebb
Merge pull request #58 from AlanRosenthal/main
...
Add definition of `Client Characteristic Configuration bit`
2022-11-08 09:34:22 -08:00
Gilles Boccon-Gibod
5aee37aeab
Merge pull request #34 from google/gbg/l2cap-bridge
...
Add L2CAP CoC support
2022-11-07 16:57:17 -08:00
Gilles Boccon-Gibod
edcb7d05d6
fix merge conflict
2022-11-07 16:51:40 -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
Alan Rosenthal
d4228e3b5b
Add definition of Client Characteristic Configuration bit
2022-11-07 19:43:22 -05:00
Lucas Abel
be8f8ac68f
Merge pull request #55 from google/uael/device-improvements
...
Device improvements
2022-11-07 15:22:41 -08:00
Abel Lucas
ca16410a6d
device: add option to check for the address type when using find_connection_by_bd_addr
2022-11-07 22:17:01 +00:00
Abel Lucas
b95888eb39
le: permit legacy scanning even when extended is supported
2022-11-07 22:15:54 +00:00
Abel Lucas
56ed46adfa
classic: add BR/EDR accept connection logic
2022-11-04 17:26:59 +00:00
Abel Lucas
7044102e05
classic: upgrade Device.cancel_connection logic to support canceling ongoing BR/EDR connections
2022-11-04 17:26:59 +00:00
Abel Lucas
ca8f284888
le: add own_address_type parameter to Device.start_advertising
2022-11-04 17:26:59 +00:00
Abel Lucas
e9e14f5183
le: make the device connecting state relative to LE only
...
We may need to add a distinct BR/EDR connecting state in the future.
2022-11-04 17:26:59 +00:00
Abel Lucas
b961affd3d
device: update Device.connect documentation to match BR/EDR behavior
2022-11-04 17:26:59 +00:00
Abel Lucas
51ddb36c91
device: add auto_restart mechanism to .start_discovery (default to True)
2022-11-04 17:26:59 +00:00
Abel Lucas
78534b659a
device: enhance .request_remote_name to also accept an Address as argument
2022-11-04 17:26:59 +00:00
Abel Lucas
ce9472bf42
core: change AdvertisingData.get default raw behavior to False
2022-11-04 17:26:59 +00:00
Abel Lucas
fc331b7aea
core: improve Advertisement.ad_data_to_object with support for more data types
2022-11-04 17:26:59 +00:00
Abel Lucas
8119bc210c
host: pass remote_host_supported_features event to upper layer
...
The `HCI_Remote_Name_Request` command may trigger this HCI event.
Instead of warn for not being handled, pass it to upper layer.
2022-11-02 20:23:14 +00:00
Abel Lucas
65deefdc64
host: allow bytes return paramaters when checking command result
2022-11-02 20:23:14 +00:00
Michael Mogenson
2920c3b0d1
Merge pull request #53 from mogenson/mogenson/show-device-tab
...
Add a show device tab
2022-10-24 09:15:43 -04:00
Michael Mogenson
f5cd825dbc
Merge pull request #51 from mogenson/mogenson/console-py-rand-addr
...
Use random address in console.py if device config is not provided
2022-10-24 09:15:10 -04:00
Gilles Boccon-Gibod
cf4c43c4ff
Merge pull request #48 from google/uael/classic-parallel-connect
...
classic: update `Device.connect` to allow parallels connection creation
2022-10-23 20:52:08 -07:00
Gilles Boccon-Gibod
da2f596e52
Merge pull request #50 from google/uael/command-timeout
...
device: raise a `CommandTimeoutError` error on command timeout
2022-10-23 20:49:06 -07:00
Gilles Boccon-Gibod
c8aa0b4ef6
Merge pull request #54 from google/gbg/fix-regression-001
...
use the correct constants as previously renamed
2022-10-23 20:43:43 -07:00
Gilles Boccon-Gibod
75ac276c8b
use the correct constants as previously renamed
2022-10-21 17:12:26 -07:00
Michael Mogenson
dd4023ff56
Add a show device tab
...
Show configuration data about the Bumble device. Make this the default
tab on startup.
2022-10-21 16:00:03 -04:00
Michael Mogenson
dde8c5e1c2
Use random address in console.py if device config is not provided
...
If a device configuration is not provided on startup, generate a random
BT address instead of using a default static value of
"F0:F1:F2:F3:F4:F5". This is helpful to avoid colisions when there are
two instances of console.py running nearby.
Testing:
Started console.py and began advertising a few times. Scanned from a
second instance of console.py and observed that the advertising address
changed with each restart.
2022-10-21 15:32:58 -04:00
Michael Mogenson
8ed1f4b50d
Merge pull request #52 from mogenson/mogenson/console-py-clear-scan-results
...
add 'scan clear' command to console.py
2022-10-21 14:34:08 -04:00
Michael Mogenson
92de7dff4f
add 'scan clear' command to console.py
...
Add command to clear scan results and known addresses. Useful for
determining if a peripheral has stopped advertising.
Also, check if a scan is in progress before connecting. If it is, stop
scanning. Some BT controllers will fail to connect while scanning.
Testing:
Can clear scan results before, during, and after scan. Can clear scan
results while disconnected and connected.
2022-10-21 13:58:21 -04:00
Abel Lucas
16b4f18c92
tests: add parallel device connection test
2022-10-21 15:49:03 +00:00
Gilles Boccon-Gibod
46f4b82d29
Merge pull request #46 from AlanRosenthal/main
...
Add runtime switch for filtering by address.
2022-10-20 19:20:28 -07:00
Abel Lucas
4e2f66f709
device: raise a CommandTimeoutError error on command timeout
2022-10-20 22:11:07 +00:00
Alan Rosenthal
3d79d7def5
Add runtime switch for filtering by address.
...
* scan on [filter pattern]
* filter address <filter pattern>
2022-10-20 14:47:14 -04:00