Add HCI Zephyr vendor commands to read and write TX power

Create platforms/zephyr/hci.py with definitions of vendor HCI commands
to read and write TX power.

Add documentation for how to prepare an nRF52840 dongle with a Zephyr
HCI USB firmware application that includes dynamic TX power support and
how to send a write TX power vendor HCI command from Bumble.
This commit is contained in:
Michael Mogenson
2023-09-08 12:32:28 -04:00
parent 7fd65d2412
commit da02f6a39b
6 changed files with 144 additions and 1 deletions

View File

@@ -104,7 +104,7 @@ class SnoopPacketReader:
)
@click.option(
'--vendors',
type=click.Choice(['android']),
type=click.Choice(['android', 'zephyr']),
multiple=True,
help='Support vendor-specific commands (list one or more)',
)
@@ -114,6 +114,8 @@ def main(format, vendors, filename):
for vendor in vendors:
if vendor == 'android':
import bumble.vendor.android.hci
elif vendor == 'zephyr':
import bumble.vendor.zephyr.hci
input = open(filename, 'rb')
if format == 'h4':