Gilles Boccon-Gibod
2c76bec7dc
use r0 by default
2023-07-12 06:03:04 -07:00
Gilles Boccon-Gibod
78581cc36f
Merge pull request #195 from google/gbg/speaker-app
...
speaker app
2023-06-10 15:24:26 -07:00
Gilles Boccon-Gibod
57b469198a
Merge pull request #196 from google/gbg/better-address-resolving
...
pairing event improvement
2023-06-07 07:03:53 -07:00
Gilles Boccon-Gibod
df848b0f24
Merge branch 'main' into gbg/speaker-app
2023-06-04 13:09:43 -07:00
Gilles Boccon-Gibod
7ec57d6d6a
fix typo
2023-06-04 12:52:27 -07:00
Hui Peng
22f7cef771
Update device name in advertising data from load_from_dict
2023-05-23 16:13:24 -07:00
Gilles Boccon-Gibod
e6a623db93
initial speaker app skeleton
2023-05-12 16:26:57 -07:00
Josh Wu
f9f694dfcf
Replace list[] legacy typing
2023-05-08 14:56:20 +08:00
Gilles Boccon-Gibod
6826f68478
fix linter warnings
2023-05-05 16:16:55 -07:00
Gilles Boccon-Gibod
3de35193bc
rebase
2023-05-05 16:09:01 -07:00
uael
5d4f811a65
smp: add simple Session proxy
...
This allow modifying the SMP behavior at runtime for testing purpose.
2023-05-04 04:33:50 +00:00
uael
3c81b248a3
smp: add type hints
2023-05-04 04:33:50 +00:00
uael
30934969b8
ssp: simplify pairing and fix just-works
...
Even through the previous implementation was correct:
- Always call `delegate.confirm()` for `just-works` pairing, but with
`auto` parameter set to `True`.
- Trust the controller and do not double check the devices IO
capabilities.
2023-05-04 04:32:38 +00:00
uael
4a333b6c0f
keys: add an in-memory key-store fallback
...
Instead of defaulting the key-store to `None`, use an in-memory one.
This way a keystore is always available. A future improvement could be
to rework the device keystore initialization to remove checks like
`if self.keystore:` along the codebase.
2023-05-04 04:32:38 +00:00
Gilles Boccon-Gibod
4286b2ab59
address PR comments
2023-04-18 15:05:18 -07:00
Gilles Boccon-Gibod
3442358dea
refactor PairingDelegate
2023-04-18 15:04:53 -07:00
Gilles Boccon-Gibod
bf3e05ef91
Merge pull request #174 from google/gbg/pairing-fix
...
fix role state for classic connections
2023-04-11 20:32:29 -07:00
Gilles Boccon-Gibod
49b2c13e69
only use 1M parameters by default
2023-04-09 17:57:11 -07:00
Gilles Boccon-Gibod
2c2f512180
add comment to explain the initial role choice
2023-04-07 12:19:28 -07:00
Gilles Boccon-Gibod
859aea5a99
fix role state for classic connections
2023-04-07 10:24:26 -07:00
Alan Rosenthal
0f737244b5
Merge pull request #169 from AlanRosenthal/alan/remote-values
...
Add `show remote-values`
2023-04-05 09:00:48 -04:00
Alan Rosenthal
a258ba383a
Add show remote-values
...
`gatt_client` caches values read/notifications/indications and displays the most recent value to the user
2023-04-04 18:15:42 +00:00
Gilles Boccon-Gibod
620c135ac4
only instantiate keystore if not already set
2023-04-03 17:52:51 -07:00
Gilles Boccon-Gibod
fca73a49a3
use device public or static address for keystore namespace
2023-04-03 12:39:22 -07:00
Alan Rosenthal
fb49a87494
Create Characteristic.Property
...
Move all Characteristic properties into its own `enum.IntFlag` class
2023-03-31 16:09:24 -04:00
Lucas Abel
5c59b6ca6d
Merge pull request #158 from benquike/main
...
Fix HCI_PIN_Code_Reply_Command
2023-03-27 17:37:54 -07:00
Hui Peng
dcd66743f6
Use delegate.get_string to get pin code
2023-03-27 17:08:26 -07:00
Lucas Abel
7e62d4a81a
Merge pull request #150 from zxzxwu/roleswitch
...
Support BR/EDR role switch & change events
2023-03-27 11:41:29 -07:00
Josh Wu
9e1358536b
Add switch_role
2023-03-25 15:17:50 +08:00
Hui Peng
a8e61673d0
Fix HCI_PIN_Code_Reply_Command in Device.on_pin_code_request
2023-03-25 03:48:56 +00:00
Alan Rosenthal
dfb6734324
Fix typo when parsing device-config's gatt server
...
* 'permission' instead of 'permissions'
* Also added a more user friendly error message when Attribute.string_to_permissions fails
```
TypeError: Attribute::permissions error:
Expected a string containing any of the keys, seperated by commas: READABLE,WRITEABLE,READ_REQUIRES_ENCRYPTION,WRITE_REQUIRES_ENCRYPTION,READ_REQUIRES_AUTHENTICATION,WRITE_REQUIRES_AUTHENTICATION,READ_REQUIRES_AUTHORIZATION,WRITE_REQUIRES_AUTHORIZATION
Got: 1
```
```
Exception: Error parsing Device Config's GATT Services. The key 'permission' must be renamed to 'permissions'
```
2023-03-24 16:11:18 -04:00
Josh Wu
4fc13585cc
Handle BR/EDR connection roles
2023-03-24 15:13:48 +08:00
Lucas Abel
4c6320f98a
Merge pull request #142 from AlanRosenthal/main
...
Fix small bug with services set via --device-config
2023-03-23 12:47:14 -07:00
Lucas Abel
1cd13dfc19
Merge pull request #153 from benquike/main
...
Add 1 bug fix and a few features in bumble
2023-03-23 10:31:02 -07:00
Hui Peng
afe8765508
Add on_pin_code_request to support legacy BT classic pairing
2023-03-23 10:14:56 -07:00
Hui Peng
b70ebdef73
Allow Device.enable_classic to be configurable
2023-03-23 08:56:32 -07:00
Gilles Boccon-Gibod
6e719ca9fd
Merge pull request #147 from google/gbg/btbench
...
add benchmark tool and doc
2023-03-22 21:13:24 -07:00
Alan Rosenthal
fda00dcb28
Used pytype to find some missing types
...
```
pytype --pythonpath . ./bumble/device.py
```
2023-03-22 14:46:41 +00:00
Gilles Boccon-Gibod
bc29f327ef
address PR comments, take 2.
2023-03-21 15:33:34 -07:00
Gilles Boccon-Gibod
1894b96de4
address PR comments
2023-03-21 15:01:46 -07:00
Gilles Boccon-Gibod
1efa2e9d44
add benchmark tool and doc
2023-03-20 18:25:21 -07:00
Alan Rosenthal
c34c5fdf17
Fix small bug with services set via --device-config
...
before:
```
File "/home/alanrosenthal/code/fitbit/bumble/bumble/gatt.py", line 572, in __str__
f'Descriptor(handle=0x{self.handle:04X}, '
File "/home/alanrosenthal/code/fitbit/bumble/bumble/att.py", line 756, in read_value
self.permissions & self.READ_REQUIRES_ENCRYPTION
TypeError: unsupported operand type(s) for &: 'str' and 'int'
```
2023-03-14 18:16:46 -04:00
Gilles Boccon-Gibod
97a0e115ae
two small hotfixes
2023-03-05 20:24:16 -08:00
uael
d21da78aa3
overall: host a minimal copy of ainsicolors
2023-02-23 20:53:06 +00:00
uael
ad27de7717
device: remove "feature" which enable accept to return the same connection has connect
2023-02-14 21:04:39 +00:00
uael
b731f6f556
overall: add types hints to the small subset used by avatar
2023-02-02 19:37:55 +00:00
Gilles Boccon-Gibod
99758e4b7d
add basic support for mypy type checking
2023-01-20 00:20:50 -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
7e854efbbb
support more commands in controller.py
2023-01-06 21:51:47 -08:00