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
80569bc9f3
add support for notifying with a transient value
2022-09-06 12:42:35 -07:00
Gilles Boccon-Gibod
daa05b8996
Merge pull request #36 from google/gbg/pairing-with-no-distribution
...
gbg/pairing with no distribution
2022-09-02 10:17:31 -07:00
Gilles Boccon-Gibod
624e860762
support empty distributions in both directions
2022-08-30 18:50:48 -07:00
Gilles Boccon-Gibod
159cbf7774
support pairing with no key distribution
2022-08-30 18:28:24 -07:00
Gilles Boccon-Gibod
d188041694
Merge pull request #35 from zxzxwu/ctkd
...
Support CTKD over BR/EDR
v0.0.120
2022-08-30 06:19:57 -07:00
Josh Wu
99cba19d7c
Support CTKD over BR/EDR
...
Self test is not available Bumble BR/EDR local transport is not
implemented yet.
Test: Internal test - CTKD over BR/EDR
2022-08-30 11:19:22 +08: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
v0.0.13
2022-08-26 12:41:55 -07:00
zxzxwu
996a9e28f4
Handle L2CAP info dynamically ( #28 )
...
* Add feature and MTU fields in L2CAP manager constructor
* Add register/unregister API for fixed channels
v0.0.12
2022-08-18 08:25:59 -07:00
zxzxwu
27cb4c586b
Delegate Classic connectable and discoverable ( #27 )
...
For remote-initiated test cases, we need the device to be
scan-configurable.
2022-08-17 14:20:32 -07:00
Gilles Boccon-Gibod
1f78243ea6
add test.release task to facilitate CI integration ( #26 )
2022-08-16 13:37:26 -07:00
Ray
216ce2abd0
Add release tasks ( #6 )
...
Added two tasks to tasks.py, release and release_tests.
Applied black formatter
authored-by: Raymundo Ramirez Mata <raymundora@google.com >
2022-08-16 11:50:30 -07:00
Gilles Boccon-Gibod
431445e6a2
fix imports ( #25 )
v0.0.11
2022-08-16 11:29:56 -07:00
Michael Mogenson
d7cc546248
Update supported commands in console.py docs ( #24 )
...
Co-authored-by: Michael Mogenson <mogenson@google.com >
2022-08-12 14:23:21 -07:00
Gilles Boccon-Gibod
29fd19f40d
gbg/fix subscribe lambda ( #23 )
...
* don't use a lambda as a subscriber
* update tests to look at side effects instead of internals
2022-08-12 14:22:31 -07:00
Michael Mogenson
14dfc1a501
Add subscribe and unsubscribe commands to console.py ( #22 )
...
Subscribe command will enable notify or indicate events from the
characteristic, depending on supported characteristic properties, and
print received values to the output window.
Unsubscribe will stop notify or indicate events.
Rename find_attribute() to find_characteristic() and return a
characteristic for a set of UUIDS, a characteristic for an attribute
handle, or None.
Print read and received values has a hex string.
Add an unsubscribe implementation to gatt_client.py. Reset the CCCD bits
to 0x0000. Remove a matching subsciber, if one is provided. Otherwise
remove all subscribers for a characteristic, since no more notify or
indicates events will be comming.
authored-by: Michael Mogenson <mogenson@google.com >
2022-08-12 11:49:01 -07:00
Gilles Boccon-Gibod
938282e961
Update python-publish.yml
2022-08-04 14:40:40 -07:00
Gilles Boccon-Gibod
900c15b151
Update python-publish.yml
...
trigger on published release
v0.0.10
2022-08-04 14:30:25 -07:00
Gilles Boccon-Gibod
9ea93be723
add missing package entry ( #21 )
v0.0.9
2022-08-04 14:27:21 -07:00
Gilles Boccon-Gibod
894ab023c7
Update python-publish.yml
...
don't run on PRs
2022-08-04 10:50:28 -07:00
Gilles Boccon-Gibod
7bbb37b2da
Merge pull request #20 from google/gbg/test-gatt-long-read
...
add long read self test
v0.0.8
2022-08-04 10:33:27 -07:00
Gilles Boccon-Gibod
3fa5d320de
add long read self test
2022-08-03 16:19:04 -07:00
Gilles Boccon-Gibod
16d684c199
Merge pull request #19 from google/gbg/pypi-publish
...
add long description
2022-08-03 16:11:51 -07:00
Gilles Boccon-Gibod
c28aa2ebb6
add long description
2022-08-01 18:18:32 -07:00
Gilles Boccon-Gibod
28586382f4
don't publish to test PyPI
...
publishing to PyPI doesn't work with SCM versioning
2022-08-01 18:16:46 -07:00
Gilles Boccon-Gibod
76f08977c4
support SCM versioning
v0.0.7
2022-08-01 17:30:00 -07:00
Gilles Boccon-Gibod
15cbf52da4
Update python-build-test.yml
...
Get history and tags for SCM versioning to work
2022-08-01 17:27:11 -07:00
Gilles Boccon-Gibod
f4f84dffef
Update python-publish.yml
...
add action to fetch tags in order for SCM versioning to work
2022-08-01 17:21:19 -07:00
Gilles Boccon-Gibod
6dfb07d7b9
Create python-publish.yml
2022-08-01 16:35:32 -07:00
Gilles Boccon-Gibod
d7ce62beaa
Merge pull request #18 from turon/docs/quick_start
...
[docs] Add some getting started information to the top-level README.
v0.0.6
2022-07-31 12:00:36 -07:00
Gilles Boccon-Gibod
0e2a184edb
Merge pull request #17 from mogenson/console_py_do_write
...
Implement 'write' command for console.py
2022-07-30 16:02:47 -07:00
Martin Turon
e6ee5ae996
[docs] Add references to some of the docs to the top-level for discoverability.
2022-07-30 14:18:08 -07:00
Martin Turon
f1836e659f
[docs] Add some getting started information to the top-level README.
2022-07-30 14:13:55 -07:00
Michael Mogenson
99218d3abf
Implement 'write' command for console.py
...
Syntax is `write <attribute> <value>`. Supports a value of type string,
hexadecimal string, or integer.
Ex:
- `write 180D.2A38 hello`
- `write 180D.2A38 0xbeef`
- `write 180D.2A38 123`
Write with response method is used if supported by characteristic,
otherwise write without response.
Add a find_attribute() method to consolidate common logic of finding a
characteristic or attribute handle in `do_read()` and `do_write()`.
Tested with run_gatt_server.py example to verify sent data.
2022-07-29 19:45:24 -04:00
Gilles Boccon-Gibod
b5ba0bef63
Merge pull request #16 from google/jdm/connection-context-manager
...
Adding in Device.connected_to context manager and Peer.sustain
2022-07-27 17:25:06 -07:00
Jayson Messenger
9cd1890faa
Adding in context manager for Connection and Peer classes
...
* Connection implements async context manager to disconnect when
context is left
* The Connection only calls disconnect if the context manager exits
without an exception
* Peer implements async context manager to discover when entering the
context
* Device.connect_as_gatt implements an async context manager to nest the
connection and peer context managers
* Added HCI_StatusError that can be raised when a HCI Command Status
event is received that doesn't show "PENDING" as status
* Added Connection.sustain to wait for a timeout or disconnect
* Peer.sustain also maps to Connectin.sustain
* Updated battery_client.py to use .connect_as_gatt and .sustain
* Updated heart_rate_client.py to use .connect_as_gatt and .sustain
2022-07-27 14:03:12 -04:00
Gilles Boccon-Gibod
472702a9d9
Merge pull request #12 from google/gbg/more-hci-types
...
more hci types
2022-07-26 18:00:21 -07:00
Gilles Boccon-Gibod
b38740e5b7
Merge pull request #15 from google/gbg/hr-profile
...
add support for the heart rate service
2022-07-26 13:17:22 -07:00
Gilles Boccon-Gibod
3040df3179
add support for the heart rate service
2022-07-23 09:38:44 -07:00
Gilles Boccon-Gibod
c66b357de6
Merge pull request #13 from google/gbg/standard-profiles
...
support for type adapters and framework for standard GATT profiles
2022-07-22 10:21:39 -07:00
Gilles Boccon-Gibod
e156ed3758
add in-context uuids and service proxy factories
2022-07-20 19:56:40 -07:00
Gilles Boccon-Gibod
0ffed3deff
Merge pull request #11 from zxzxwu/main
...
Implement CTKD over LE and key distribution delegation
2022-07-20 15:35:26 -07:00
Josh Wu
2f949a1182
Delegate SMP key distribution
...
* Delegate SMP key distribution
* Align LE pairing key expectation
* Parametrize SMP self test, and add key distribution coverage
2022-07-21 01:19:36 +08:00
Josh Wu
4e2fae5145
Implement CTKD over LE
2022-07-21 01:19:25 +08:00
Gilles Boccon-Gibod
2b58364c51
Merge pull request #14 from zxzxwu/conn-lookup
...
Refactor find_connection_by_bd_addr
2022-07-20 08:26:04 -07:00
Josh Wu
e3bf7c4b53
Refactor find_connection_by_bd_addr
...
* Compare only address bytes because Address.__eq__ also compares types.
* Add a transport field to find connection to a device on specific
transport. (It's possible to connect a device on both BR/EDR and LE)
2022-07-20 21:32:20 +08:00
Gilles Boccon-Gibod
009ecfce96
use list comprehension
2022-07-19 19:53:18 -07:00
Gilles Boccon-Gibod
d6075df356
add tool
2022-07-19 19:53:18 -07:00
Gilles Boccon-Gibod
ebd0a0c8ca
more complete set of HCI types and constants
2022-07-19 19:53:18 -07:00