Josh Wu
838d10a09d
Add HFP tests
2023-09-07 23:20:16 +08:00
Josh Wu
901eb55b0e
Add SDP self tests
2023-08-24 01:27:07 +08:00
Josh Wu
727586e40e
Typing SDP
2023-08-23 14:52:44 +08:00
Gilles Boccon-Gibod
f4add16aea
Merge pull request #241 from hchataing/hfp-hf
...
hfp: Implement initiate SLC procedure for HFP-HF
2023-08-14 10:32:55 -07:00
Henri Chataing
9963b51c04
hfp: Implement initiate SLC procedure for HFP-HF
2023-08-10 08:37:54 -07:00
Josh Wu
6399c5fb04
Auto add device to resolving list after pairing
2023-08-03 20:51:00 +08:00
Josh Wu
cbbada4748
SMP: Delegate distributed address type
2023-08-01 08:38:03 -07:00
Gilles Boccon-Gibod
bdad225033
add support for field arrays in hci packet definitions
2023-07-30 22:19:10 -07:00
Gilles Boccon-Gibod
4ffc050eed
restore python < 11 compat
2023-07-27 16:37:27 -07:00
Gilles Boccon-Gibod
60678419a0
compatibility with python 11
2023-07-27 14:55:28 -07:00
Josh Wu
43234d7c3e
Use with-patch to mock SMP session
2023-07-27 08:00:36 -07:00
Josh Wu
f6c0bd88d7
SMP: Do not send phase 2 commands in CTKD
2023-07-27 08:00:36 -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
a118792279
fix format
2023-06-04 13:12:11 -07:00
Gilles Boccon-Gibod
27fbb58447
add basic keystore test
2023-06-04 13:01:07 -07:00
Gilles Boccon-Gibod
7b7ef85b14
wip
2023-05-12 16:26:57 -07:00
Josh Wu
7d7534928f
Add self GATT included service tests
2023-05-08 14:59:58 +08:00
uael
fdee5ecf70
uuid: add separator to to_hex_str + type hints
2023-05-04 04:33:50 +00:00
Gilles Boccon-Gibod
3442358dea
refactor PairingDelegate
2023-04-18 15:04:53 -07:00
Gilles Boccon-Gibod
859aea5a99
fix role state for classic connections
2023-04-07 10:24:26 -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
Alan Rosenthal
eba82b9d9a
Merge pull request #164 from AlanRosenthal/alan/local-write
...
Add `local-write` to bumble-console
2023-03-31 16:07:09 -04:00
Alan Rosenthal
e026de295f
Add show local-values
...
This PR adds a way to display the local gatt characteristics/descriptors values
If no connections, it shows the value of every characteristic/descriptor.
When there's a connection, it shows the value for each specific connection - CCCDs are connection specific
This screen auto-updates every second
2023-03-31 00:20:07 +00:00
Alan Rosenthal
52c15705e9
Add local-write to bumble-console
...
Add a command to update the local gatt server, and notify/indicate subscribes (if any)
2023-03-30 12:33:32 -04:00
Josh Wu
b6fe7460ac
Add role switch test and assertion in self test
2023-03-28 12:52:00 +08: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
Lucas Abel
a72beb1b06
Merge pull request #144 from zxzxwu/classic_link
...
Add Classic Bluetooth link support
2023-03-27 11:41:42 -07:00
Josh Wu
21d8a0d577
Add Classic Local Link support
...
Currently supported features:
* Connect
* Accept
* Switch Role
* Disconnect
* ACL data transmittion
2023-03-25 15:11:59 +08:00
Hui Peng
bd25cf27df
Fix a misconfig of HCI_PIN_Code_Reply_Command
...
The pin_code field is of fixed length of 16 bytes
2023-03-25 03:47:07 +00: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
cc0d56ad14
Merge pull request #152 from duohoo/g722_decoder
...
Add G722 decoder with pure python implementation
2023-03-23 12:45:07 -07:00
Hui Peng
41d1772cb5
Add test for HCI_PIN_Code_Request_Reply_Command
2023-03-23 10:14:51 -07:00
Duo Ho
1a580d1c1e
Add G722 decoder with pure python implementation
2023-03-23 03:07:45 +00:00
Gilles Boccon-Gibod
dc3ac3060e
add auto-snooping for transports
2023-03-20 11:06:50 -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
fbc7cf02a3
Merge pull request #129 from google/gbg/smp-improvements
...
improve smp compatibility with other OS flows
2023-02-14 19:10:51 -08:00
uael
ad27de7717
device: remove "feature" which enable accept to return the same connection has connect
2023-02-14 21:04:39 +00:00
Gilles Boccon-Gibod
e6fc63b2d8
improve smp compatibility with other OS flows
2023-02-13 10:53:00 -08: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
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
Abel Lucas
287df94090
host: spawn each asynchronous task with the right aliveness
2022-12-15 17:02:21 +00:00
Gilles Boccon-Gibod
135df0dcc0
format with Black
2022-12-10 09:40:12 -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
Abel Lucas
691450c7de
gatt: fix CharacteristicDeclaration.__str__ and associated test
2022-11-29 16:43:47 +00: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
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
Alan Rosenthal
b89f9030a0
Added class CharacteristicDeclaration, gatt_server getters
...
* Converted CharacteristicDeclaration implementation to class
* Added ability to get a gatt_server attribute by service UUID, characteristics UUID, descriptor UUID
2022-11-27 19:22:25 +00:00
Alan Rosenthal
a3e4674819
Fix test failures
...
a. `DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead`
Updated call in `bumble/smp.py`
b. `ModuleNotFoundError: No module named 'bumble.apps'`
Updated imports in `tests/import_test.py`
c. Added `pytest-html` for easier viewing of test results
Added package in `setup.cfg`, and hook in `tasks.py`
d. Updated workflows to use `invoke test`
This is a partial fix of #81
2022-11-23 11:31:27 -05:00
Gilles Boccon-Gibod
f2133235d5
Merge pull request #73 from google/gbg/faster-l2cap-test
...
lower the number of test cases for l2cap in order to speed up the test
2022-11-15 10:49:55 -08:00