bumble 0.0.194__tar.gz → 0.0.195__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bumble-0.0.194/bumble.egg-info → bumble-0.0.195}/PKG-INFO +1 -1
- bumble-0.0.195/apps/auracast.py +407 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/bench.py +77 -23
- {bumble-0.0.194 → bumble-0.0.195}/apps/controller_info.py +3 -3
- {bumble-0.0.194 → bumble-0.0.195}/bumble/_version.py +2 -2
- {bumble-0.0.194 → bumble-0.0.195}/bumble/core.py +689 -115
- {bumble-0.0.194 → bumble-0.0.195}/bumble/device.py +441 -12
- {bumble-0.0.194 → bumble-0.0.195}/bumble/hci.py +250 -12
- {bumble-0.0.194 → bumble-0.0.195}/bumble/host.py +25 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pandora/host.py +3 -2
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/bap.py +101 -5
- bumble-0.0.195/bumble/profiles/le_audio.py +49 -0
- bumble-0.0.195/bumble/profiles/pbp.py +46 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/rfcomm.py +10 -1
- {bumble-0.0.194 → bumble-0.0.195/bumble.egg-info}/PKG-INFO +1 -1
- {bumble-0.0.194 → bumble-0.0.195}/bumble.egg-info/SOURCES.txt +3 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Model.kt +2 -1
- {bumble-0.0.194 → bumble-0.0.195}/tests/core_test.py +30 -1
- {bumble-0.0.194 → bumble-0.0.195}/tests/device_test.py +36 -6
- {bumble-0.0.194 → bumble-0.0.195}/.git-blame-ignore-revs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/.github/workflows/code-check.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/.github/workflows/codeql-analysis.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/.github/workflows/python-avatar.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/.github/workflows/python-build-test.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/.github/workflows/python-publish.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/.gitignore +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/.vscode/settings.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/CONTRIBUTING.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/LICENSE +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/README.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/README.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/ble_rpa_tool.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/console.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/controller_loopback.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/controllers.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/gatt_dump.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/gg_bridge.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/hci_bridge.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/l2cap_bridge.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/lea_unicast/app.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/lea_unicast/index.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/lea_unicast/liblc3.wasm +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/link_relay/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/link_relay/link_relay.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/link_relay/logging.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/pair.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/pandora_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/rfcomm_bridge.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/scan.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/show.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/speaker/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/speaker/logo.svg +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/speaker/speaker.css +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/speaker/speaker.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/speaker/speaker.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/speaker/speaker.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/unbond.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/apps/usb_probe.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/a2dp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/at.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/att.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/avc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/avctp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/avdtp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/avrcp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/bridge.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/codecs.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/colors.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/company_ids.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/controller.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/crypto.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/decoder.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/drivers/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/drivers/common.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/drivers/intel.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/drivers/rtk.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/gap.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/gatt.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/gatt_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/gatt_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/helpers.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/hfp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/hid.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/keys.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/l2cap.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/link.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pairing.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pandora/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pandora/config.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pandora/device.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pandora/py.typed +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pandora/security.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/pandora/utils.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/asha_service.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/battery_service.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/cap.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/csip.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/device_information_service.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/heart_rate_service.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/py.typed +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/profiles/vcp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/py.typed +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/sdp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/smp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/snoop.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/android_emulator.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/android_netsim.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/common.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/file.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/common_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/common_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/common_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/hci_packet_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/hci_packet_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/hci_packet_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/packet_streamer_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/packet_streamer_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/packet_streamer_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/startup_pb2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/startup_pb2.pyi +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/grpc_protobuf/startup_pb2_grpc.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/hci_socket.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/pty.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/py.typed +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/pyusb.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/serial.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/tcp_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/tcp_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/udp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/usb.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/vhci.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/ws_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/transport/ws_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/utils.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/vendor/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/vendor/android/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/vendor/android/hci.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/vendor/zephyr/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble/vendor/zephyr/hci.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble.egg-info/dependency_links.txt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble.egg-info/entry_points.txt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble.egg-info/requires.txt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/bumble.egg-info/top_level.txt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/README.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo.svg +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo.vectornator/Artboard0.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo.vectornator/Document.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo.vectornator/Manifest.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo.vectornator/Thumbnail.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo.vectornator/UndoHistory.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo_framed.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo_framed.svg +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo_framed.vectornator/Artboard0.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo_framed.vectornator/Document.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo_framed.vectornator/Manifest.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo_framed.vectornator/Thumbnail.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/images/logo_framed.vectornator/UndoHistory.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/mkdocs.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/requirements.txt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/api/examples.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/api/guide.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/api/reference.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/bench.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/console.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/gatt_dump.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/gg_bridge.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/hci_bridge.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/link_relay.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/pair.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/show.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/speaker.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/unbond.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/apps_and_tools/usb_probe.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/components/controller.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/components/gatt.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/components/host.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/components/security_manager.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/development/code_style.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/development/contributing.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/development/python_environments.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/downloads/zephyr/hci_usb.zip +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/drivers/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/drivers/realtek.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/examples/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/extras/android_bt_bench.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/extras/android_remote_hci.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/extras/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/getting_started.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hardware/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/index.toml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/bumble.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/scanner/scanner.css +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/scanner/scanner.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/scanner/scanner.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/scanner/scanner.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/speaker/logo.svg +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/speaker/speaker.css +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/speaker/speaker.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/speaker/speaker.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/speaker/speaker.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/hive/web/ui.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/images/bumble_layers.svg +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/images/console_screenshot.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/images/favicon.ico +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/images/logo.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/images/logo_framed.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/images/speaker_screenshot.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/platforms/android.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/platforms/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/platforms/linux.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/platforms/macos.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/platforms/windows.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/platforms/winusb_driver.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/platforms/zephyr.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/android_emulator.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/file.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/hci_socket.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/pty.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/serial.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/tcp_client.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/tcp_server.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/udp.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/usb.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/vhci.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/ws_client.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/transports/ws_server.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/use_cases/index.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/use_cases/use_case_1.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/use_cases/use_case_2.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/use_cases/use_case_3.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/use_cases/use_case_4.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/use_cases/use_case_5.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/src/use_cases/use_case_6.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/docs/mkdocs/theme/partials/footer.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/environment.yml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/README.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/a2dp_sink1.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/asha_sink1.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/asha_sink2.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/async_runner.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/avrcp_as_sink.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/battery_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/battery_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/classic1.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/classic2.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/device1.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/device2.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/device3.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/device_information_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/device_information_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/heart_rate_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/heart_rate_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/hfp_gateway.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/hfp_gateway.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/hfp_handsfree.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/hfp_handsfree.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/hid_key_map.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/hid_keyboard.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/hid_report_parser.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/keyboard.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/keyboard.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/keyboard.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/leaudio.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/leaudio_with_classic.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_a2dp_info.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_a2dp_sink.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_a2dp_source.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_advertiser.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_asha_sink.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_avrcp.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_cig_setup.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_classic_connect.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_classic_discoverable.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_classic_discovery.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_connect_and_encrypt.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_controller.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_controller_with_scanner.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_csis_servers.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_device_with_snooper.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_esco_connection.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_extended_advertiser.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_extended_advertiser_2.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_gatt_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_gatt_client_and_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_gatt_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_hfp_gateway.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_hfp_handsfree.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_hid_device.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_hid_host.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_notifier.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_rfcomm_client.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_rfcomm_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_scanner.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_unicast_server.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/run_vcp_renderer.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/speaker.json +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/examples/vcp_renderer.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/.gitignore +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/.gitignore +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/build.gradle.kts +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/proguard-rules.pro +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/ic_launcher-playstore.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/L2capClient.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/L2capServer.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/MainActivity.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Packet.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Receiver.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/RfcommClient.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/RfcommServer.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Sender.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/SocketClient.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/SocketServer.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Color.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Theme.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Type.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/drawable/ic_launcher_background.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/drawable/ic_launcher_foreground.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/values/colors.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/values/ic_launcher_background.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/values/strings.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/values/themes.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/xml/backup_rules.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/app/src/main/res/xml/data_extraction_rules.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/build.gradle.kts +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/gradle/libs.versions.toml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/gradle/wrapper/gradle-wrapper.jar +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/gradle/wrapper/gradle-wrapper.properties +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/gradle.properties +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/gradlew +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/gradlew.bat +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/BtBench/settings.gradle.kts +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/.gitignore +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/.gitignore +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/build.gradle.kts +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/proguard-rules.pro +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/IBluetoothHci.aidl +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/IBluetoothHciCallbacks.aidl +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/Status.aidl +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/hidl/bluetooth/1.1/IBluetoothHci.hal +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/hidl/bluetooth/1.1/IBluetoothHciCallbacks.hal +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/ic_launcher-playstore.png +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/IBluetoothHci.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/Status.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/IBluetoothHci.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/Status.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_1/IBluetoothHci.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_1/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/CommandLineInterface.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciHal.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciHalCallback.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciPacket.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciParser.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciProxy.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciServer.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/MainActivity.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Color.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Theme.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Type.kt +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/values/colors.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/values/ic_launcher_background.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/values/strings.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/values/themes.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/xml/backup_rules.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/app/src/main/res/xml/data_extraction_rules.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/build.gradle.kts +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/gradle/libs.versions.toml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/gradle/wrapper/gradle-wrapper.jar +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/gradle/wrapper/gradle-wrapper.properties +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/gradle.properties +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/gradlew +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/gradlew.bat +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/.gitignore +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/build.gradle.kts +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/consumer-rules.pro +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/proguard-rules.pro +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/internal/hidl/base/V1_0/DebugInfo.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/internal/hidl/base/V1_0/IBase.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/HidlSupport.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwBinder.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwBlob.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwParcel.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/IHwBinder.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/IHwInterface.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/NativeHandle.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/lib/src/main/java/android/os/ServiceManager.java +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/scripts/generate_java_from_aidl.sh +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/extras/android/RemoteHCI/settings.gradle.kts +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/noxfile.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/pyproject.toml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/.gitignore +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/CHANGELOG.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/Cargo.lock +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/Cargo.toml +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/README.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/examples/battery_client.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/examples/broadcast.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/examples/scanner.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/pytests/assigned_numbers.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/pytests/pytests.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/pytests/wrapper/drivers.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/pytests/wrapper/hci.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/pytests/wrapper/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/pytests/wrapper/transport.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/resources/test/firmware/realtek/README.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/resources/test/firmware/realtek/rtl8723b_fw_structure.bin +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/resources/test/firmware/realtek/rtl8761bu_fw_structure.bin +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/adv.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/cli/firmware/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/cli/firmware/rtk.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/cli/l2cap/client_bridge.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/cli/l2cap/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/cli/l2cap/server_bridge.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/cli/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/cli/usb/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/internal/drivers/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/internal/drivers/rtk.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/internal/hci/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/internal/hci/packets.pdl +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/internal/hci/tests.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/internal/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/lib.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/main.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/assigned_numbers/company_ids.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/assigned_numbers/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/assigned_numbers/services.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/common.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/controller.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/core.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/device/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/device/tests.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/drivers/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/drivers/rtk.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/gatt_client.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/hci.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/host.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/l2cap.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/link.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/logging.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/mod.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/profile.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/src/wrapper/transport.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/tools/file_header.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/rust/tools/gen_assigned_numbers.rs +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/scripts/process_android_emulator_protos.sh +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/scripts/process_android_netsim_protos.sh +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/setup.cfg +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/setup.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tasks.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/a2dp_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/at_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/avdtp_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/avrcp_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/bap_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/cap_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/codecs_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/csip_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/decoder_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/g722_sample.g722 +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/gatt_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/hci_data_001.bin +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/hci_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/hfp_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/host_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/import_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/keystore_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/l2cap_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/pytest.ini +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/rfcomm_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/sdp_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/self_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/smp_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/test_utils.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/transport_tcp_server_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/transport_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/utils_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tests/vcp_test.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tools/__init__.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tools/generate_company_id_list.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tools/rtk_fw_download.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/tools/rtk_util.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/README.md +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/bumble.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/heart_rate_monitor/heart_rate_monitor.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/heart_rate_monitor/heart_rate_monitor.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/heart_rate_monitor/heart_rate_monitor.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/scanner/scanner.css +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/scanner/scanner.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/scanner/scanner.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/scanner/scanner.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/speaker/logo.svg +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/speaker/speaker.css +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/speaker/speaker.html +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/speaker/speaker.js +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/speaker/speaker.py +0 -0
- {bumble-0.0.194 → bumble-0.0.195}/web/ui.js +0 -0
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
# Copyright 2024 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
# -----------------------------------------------------------------------------
|
|
16
|
+
# Imports
|
|
17
|
+
# -----------------------------------------------------------------------------
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
import asyncio
|
|
20
|
+
import dataclasses
|
|
21
|
+
import logging
|
|
22
|
+
import os
|
|
23
|
+
from typing import cast, Dict, Optional, Tuple
|
|
24
|
+
|
|
25
|
+
import click
|
|
26
|
+
import pyee
|
|
27
|
+
|
|
28
|
+
from bumble.colors import color
|
|
29
|
+
import bumble.company_ids
|
|
30
|
+
import bumble.core
|
|
31
|
+
import bumble.device
|
|
32
|
+
import bumble.gatt
|
|
33
|
+
import bumble.hci
|
|
34
|
+
import bumble.profiles.bap
|
|
35
|
+
import bumble.profiles.pbp
|
|
36
|
+
import bumble.transport
|
|
37
|
+
import bumble.utils
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# -----------------------------------------------------------------------------
|
|
41
|
+
# Logging
|
|
42
|
+
# -----------------------------------------------------------------------------
|
|
43
|
+
logger = logging.getLogger(__name__)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# -----------------------------------------------------------------------------
|
|
47
|
+
# Constants
|
|
48
|
+
# -----------------------------------------------------------------------------
|
|
49
|
+
AURACAST_DEFAULT_DEVICE_NAME = "Bumble Auracast"
|
|
50
|
+
AURACAST_DEFAULT_DEVICE_ADDRESS = bumble.hci.Address("F0:F1:F2:F3:F4:F5")
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# -----------------------------------------------------------------------------
|
|
54
|
+
# Discover Broadcasts
|
|
55
|
+
# -----------------------------------------------------------------------------
|
|
56
|
+
class BroadcastDiscoverer:
|
|
57
|
+
@dataclasses.dataclass
|
|
58
|
+
class Broadcast(pyee.EventEmitter):
|
|
59
|
+
name: str
|
|
60
|
+
sync: bumble.device.PeriodicAdvertisingSync
|
|
61
|
+
rssi: int = 0
|
|
62
|
+
public_broadcast_announcement: Optional[
|
|
63
|
+
bumble.profiles.pbp.PublicBroadcastAnnouncement
|
|
64
|
+
] = None
|
|
65
|
+
broadcast_audio_announcement: Optional[
|
|
66
|
+
bumble.profiles.bap.BroadcastAudioAnnouncement
|
|
67
|
+
] = None
|
|
68
|
+
basic_audio_announcement: Optional[
|
|
69
|
+
bumble.profiles.bap.BasicAudioAnnouncement
|
|
70
|
+
] = None
|
|
71
|
+
appearance: Optional[bumble.core.Appearance] = None
|
|
72
|
+
biginfo: Optional[bumble.device.BIGInfoAdvertisement] = None
|
|
73
|
+
manufacturer_data: Optional[Tuple[str, bytes]] = None
|
|
74
|
+
|
|
75
|
+
def __post_init__(self) -> None:
|
|
76
|
+
super().__init__()
|
|
77
|
+
self.sync.on('establishment', self.on_sync_establishment)
|
|
78
|
+
self.sync.on('loss', self.on_sync_loss)
|
|
79
|
+
self.sync.on('periodic_advertisement', self.on_periodic_advertisement)
|
|
80
|
+
self.sync.on('biginfo_advertisement', self.on_biginfo_advertisement)
|
|
81
|
+
|
|
82
|
+
self.establishment_timeout_task = asyncio.create_task(
|
|
83
|
+
self.wait_for_establishment()
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
async def wait_for_establishment(self) -> None:
|
|
87
|
+
await asyncio.sleep(5.0)
|
|
88
|
+
if self.sync.state == bumble.device.PeriodicAdvertisingSync.State.PENDING:
|
|
89
|
+
print(
|
|
90
|
+
color(
|
|
91
|
+
'!!! Periodic advertisement sync not established in time, '
|
|
92
|
+
'canceling',
|
|
93
|
+
'red',
|
|
94
|
+
)
|
|
95
|
+
)
|
|
96
|
+
await self.sync.terminate()
|
|
97
|
+
|
|
98
|
+
def update(self, advertisement: bumble.device.Advertisement) -> None:
|
|
99
|
+
self.rssi = advertisement.rssi
|
|
100
|
+
for service_data in advertisement.data.get_all(
|
|
101
|
+
bumble.core.AdvertisingData.SERVICE_DATA
|
|
102
|
+
):
|
|
103
|
+
assert isinstance(service_data, tuple)
|
|
104
|
+
service_uuid, data = service_data
|
|
105
|
+
assert isinstance(data, bytes)
|
|
106
|
+
|
|
107
|
+
if (
|
|
108
|
+
service_uuid
|
|
109
|
+
== bumble.gatt.GATT_PUBLIC_BROADCAST_ANNOUNCEMENT_SERVICE
|
|
110
|
+
):
|
|
111
|
+
self.public_broadcast_announcement = (
|
|
112
|
+
bumble.profiles.pbp.PublicBroadcastAnnouncement.from_bytes(data)
|
|
113
|
+
)
|
|
114
|
+
continue
|
|
115
|
+
|
|
116
|
+
if (
|
|
117
|
+
service_uuid
|
|
118
|
+
== bumble.gatt.GATT_BROADCAST_AUDIO_ANNOUNCEMENT_SERVICE
|
|
119
|
+
):
|
|
120
|
+
self.broadcast_audio_announcement = (
|
|
121
|
+
bumble.profiles.bap.BroadcastAudioAnnouncement.from_bytes(data)
|
|
122
|
+
)
|
|
123
|
+
continue
|
|
124
|
+
|
|
125
|
+
self.appearance = advertisement.data.get( # type: ignore[assignment]
|
|
126
|
+
bumble.core.AdvertisingData.APPEARANCE
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
if manufacturer_data := advertisement.data.get(
|
|
130
|
+
bumble.core.AdvertisingData.MANUFACTURER_SPECIFIC_DATA
|
|
131
|
+
):
|
|
132
|
+
assert isinstance(manufacturer_data, tuple)
|
|
133
|
+
company_id = cast(int, manufacturer_data[0])
|
|
134
|
+
data = cast(bytes, manufacturer_data[1])
|
|
135
|
+
self.manufacturer_data = (
|
|
136
|
+
bumble.company_ids.COMPANY_IDENTIFIERS.get(
|
|
137
|
+
company_id, f'0x{company_id:04X}'
|
|
138
|
+
),
|
|
139
|
+
data,
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
def print(self) -> None:
|
|
143
|
+
print(
|
|
144
|
+
color('Broadcast:', 'yellow'),
|
|
145
|
+
self.sync.advertiser_address,
|
|
146
|
+
color(self.sync.state.name, 'green'),
|
|
147
|
+
)
|
|
148
|
+
print(f' {color("Name", "cyan")}: {self.name}')
|
|
149
|
+
if self.appearance:
|
|
150
|
+
print(f' {color("Appearance", "cyan")}: {str(self.appearance)}')
|
|
151
|
+
print(f' {color("RSSI", "cyan")}: {self.rssi}')
|
|
152
|
+
print(f' {color("SID", "cyan")}: {self.sync.sid}')
|
|
153
|
+
|
|
154
|
+
if self.manufacturer_data:
|
|
155
|
+
print(
|
|
156
|
+
f' {color("Manufacturer Data", "cyan")}: '
|
|
157
|
+
f'{self.manufacturer_data[0]} -> {self.manufacturer_data[1].hex()}'
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
if self.broadcast_audio_announcement:
|
|
161
|
+
print(
|
|
162
|
+
f' {color("Broadcast ID", "cyan")}: '
|
|
163
|
+
f'{self.broadcast_audio_announcement.broadcast_id}'
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
if self.public_broadcast_announcement:
|
|
167
|
+
print(
|
|
168
|
+
f' {color("Features", "cyan")}: '
|
|
169
|
+
f'{self.public_broadcast_announcement.features}'
|
|
170
|
+
)
|
|
171
|
+
print(
|
|
172
|
+
f' {color("Metadata", "cyan")}: '
|
|
173
|
+
f'{self.public_broadcast_announcement.metadata}'
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
if self.basic_audio_announcement:
|
|
177
|
+
print(color(' Audio:', 'cyan'))
|
|
178
|
+
print(
|
|
179
|
+
color(' Presentation Delay:', 'magenta'),
|
|
180
|
+
self.basic_audio_announcement.presentation_delay,
|
|
181
|
+
)
|
|
182
|
+
for subgroup in self.basic_audio_announcement.subgroups:
|
|
183
|
+
print(color(' Subgroup:', 'magenta'))
|
|
184
|
+
print(color(' Codec ID:', 'yellow'))
|
|
185
|
+
print(
|
|
186
|
+
color(' Coding Format: ', 'green'),
|
|
187
|
+
subgroup.codec_id.coding_format.name,
|
|
188
|
+
)
|
|
189
|
+
print(
|
|
190
|
+
color(' Company ID: ', 'green'),
|
|
191
|
+
subgroup.codec_id.company_id,
|
|
192
|
+
)
|
|
193
|
+
print(
|
|
194
|
+
color(' Vendor Specific Codec ID:', 'green'),
|
|
195
|
+
subgroup.codec_id.vendor_specific_codec_id,
|
|
196
|
+
)
|
|
197
|
+
print(
|
|
198
|
+
color(' Codec Config:', 'yellow'),
|
|
199
|
+
subgroup.codec_specific_configuration,
|
|
200
|
+
)
|
|
201
|
+
print(color(' Metadata: ', 'yellow'), subgroup.metadata)
|
|
202
|
+
|
|
203
|
+
for bis in subgroup.bis:
|
|
204
|
+
print(color(f' BIS [{bis.index}]:', 'yellow'))
|
|
205
|
+
print(
|
|
206
|
+
color(' Codec Config:', 'green'),
|
|
207
|
+
bis.codec_specific_configuration,
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
if self.biginfo:
|
|
211
|
+
print(color(' BIG:', 'cyan'))
|
|
212
|
+
print(
|
|
213
|
+
color(' Number of BIS:', 'magenta'),
|
|
214
|
+
self.biginfo.num_bis,
|
|
215
|
+
)
|
|
216
|
+
print(
|
|
217
|
+
color(' PHY: ', 'magenta'),
|
|
218
|
+
self.biginfo.phy.name,
|
|
219
|
+
)
|
|
220
|
+
print(
|
|
221
|
+
color(' Framed: ', 'magenta'),
|
|
222
|
+
self.biginfo.framed,
|
|
223
|
+
)
|
|
224
|
+
print(
|
|
225
|
+
color(' Encrypted: ', 'magenta'),
|
|
226
|
+
self.biginfo.encrypted,
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
def on_sync_establishment(self) -> None:
|
|
230
|
+
self.establishment_timeout_task.cancel()
|
|
231
|
+
self.emit('change')
|
|
232
|
+
|
|
233
|
+
def on_sync_loss(self) -> None:
|
|
234
|
+
self.basic_audio_announcement = None
|
|
235
|
+
self.biginfo = None
|
|
236
|
+
self.emit('change')
|
|
237
|
+
|
|
238
|
+
def on_periodic_advertisement(
|
|
239
|
+
self, advertisement: bumble.device.PeriodicAdvertisement
|
|
240
|
+
) -> None:
|
|
241
|
+
if advertisement.data is None:
|
|
242
|
+
return
|
|
243
|
+
|
|
244
|
+
for service_data in advertisement.data.get_all(
|
|
245
|
+
bumble.core.AdvertisingData.SERVICE_DATA
|
|
246
|
+
):
|
|
247
|
+
assert isinstance(service_data, tuple)
|
|
248
|
+
service_uuid, data = service_data
|
|
249
|
+
assert isinstance(data, bytes)
|
|
250
|
+
|
|
251
|
+
if service_uuid == bumble.gatt.GATT_BASIC_AUDIO_ANNOUNCEMENT_SERVICE:
|
|
252
|
+
self.basic_audio_announcement = (
|
|
253
|
+
bumble.profiles.bap.BasicAudioAnnouncement.from_bytes(data)
|
|
254
|
+
)
|
|
255
|
+
break
|
|
256
|
+
|
|
257
|
+
self.emit('change')
|
|
258
|
+
|
|
259
|
+
def on_biginfo_advertisement(
|
|
260
|
+
self, advertisement: bumble.device.BIGInfoAdvertisement
|
|
261
|
+
) -> None:
|
|
262
|
+
self.biginfo = advertisement
|
|
263
|
+
self.emit('change')
|
|
264
|
+
|
|
265
|
+
def __init__(
|
|
266
|
+
self,
|
|
267
|
+
device: bumble.device.Device,
|
|
268
|
+
filter_duplicates: bool,
|
|
269
|
+
sync_timeout: float,
|
|
270
|
+
):
|
|
271
|
+
self.device = device
|
|
272
|
+
self.filter_duplicates = filter_duplicates
|
|
273
|
+
self.sync_timeout = sync_timeout
|
|
274
|
+
self.broadcasts: Dict[bumble.hci.Address, BroadcastDiscoverer.Broadcast] = {}
|
|
275
|
+
self.status_message = ''
|
|
276
|
+
device.on('advertisement', self.on_advertisement)
|
|
277
|
+
|
|
278
|
+
async def run(self) -> None:
|
|
279
|
+
self.status_message = color('Scanning...', 'green')
|
|
280
|
+
await self.device.start_scanning(
|
|
281
|
+
active=False,
|
|
282
|
+
filter_duplicates=False,
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
def refresh(self) -> None:
|
|
286
|
+
# Clear the screen from the top
|
|
287
|
+
print('\033[H')
|
|
288
|
+
print('\033[0J')
|
|
289
|
+
print('\033[H')
|
|
290
|
+
|
|
291
|
+
# Print the status message
|
|
292
|
+
print(self.status_message)
|
|
293
|
+
print("==========================================")
|
|
294
|
+
|
|
295
|
+
# Print all broadcasts
|
|
296
|
+
for broadcast in self.broadcasts.values():
|
|
297
|
+
broadcast.print()
|
|
298
|
+
print('------------------------------------------')
|
|
299
|
+
|
|
300
|
+
# Clear the screen to the bottom
|
|
301
|
+
print('\033[0J')
|
|
302
|
+
|
|
303
|
+
def on_advertisement(self, advertisement: bumble.device.Advertisement) -> None:
|
|
304
|
+
if (
|
|
305
|
+
broadcast_name := advertisement.data.get(
|
|
306
|
+
bumble.core.AdvertisingData.BROADCAST_NAME
|
|
307
|
+
)
|
|
308
|
+
) is None:
|
|
309
|
+
return
|
|
310
|
+
assert isinstance(broadcast_name, str)
|
|
311
|
+
|
|
312
|
+
if broadcast := self.broadcasts.get(advertisement.address):
|
|
313
|
+
broadcast.update(advertisement)
|
|
314
|
+
self.refresh()
|
|
315
|
+
return
|
|
316
|
+
|
|
317
|
+
bumble.utils.AsyncRunner.spawn(
|
|
318
|
+
self.on_new_broadcast(broadcast_name, advertisement)
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
async def on_new_broadcast(
|
|
322
|
+
self, name: str, advertisement: bumble.device.Advertisement
|
|
323
|
+
) -> None:
|
|
324
|
+
periodic_advertising_sync = await self.device.create_periodic_advertising_sync(
|
|
325
|
+
advertiser_address=advertisement.address,
|
|
326
|
+
sid=advertisement.sid,
|
|
327
|
+
sync_timeout=self.sync_timeout,
|
|
328
|
+
filter_duplicates=self.filter_duplicates,
|
|
329
|
+
)
|
|
330
|
+
broadcast = self.Broadcast(
|
|
331
|
+
name,
|
|
332
|
+
periodic_advertising_sync,
|
|
333
|
+
)
|
|
334
|
+
broadcast.on('change', self.refresh)
|
|
335
|
+
broadcast.update(advertisement)
|
|
336
|
+
self.broadcasts[advertisement.address] = broadcast
|
|
337
|
+
periodic_advertising_sync.on('loss', lambda: self.on_broadcast_loss(broadcast))
|
|
338
|
+
self.status_message = color(
|
|
339
|
+
f'+Found {len(self.broadcasts)} broadcasts', 'green'
|
|
340
|
+
)
|
|
341
|
+
self.refresh()
|
|
342
|
+
|
|
343
|
+
def on_broadcast_loss(self, broadcast: Broadcast) -> None:
|
|
344
|
+
del self.broadcasts[broadcast.sync.advertiser_address]
|
|
345
|
+
bumble.utils.AsyncRunner.spawn(broadcast.sync.terminate())
|
|
346
|
+
self.status_message = color(
|
|
347
|
+
f'-Found {len(self.broadcasts)} broadcasts', 'green'
|
|
348
|
+
)
|
|
349
|
+
self.refresh()
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
async def run_discover_broadcasts(
|
|
353
|
+
filter_duplicates: bool, sync_timeout: float, transport: str
|
|
354
|
+
) -> None:
|
|
355
|
+
async with await bumble.transport.open_transport(transport) as (
|
|
356
|
+
hci_source,
|
|
357
|
+
hci_sink,
|
|
358
|
+
):
|
|
359
|
+
device = bumble.device.Device.with_hci(
|
|
360
|
+
AURACAST_DEFAULT_DEVICE_NAME,
|
|
361
|
+
AURACAST_DEFAULT_DEVICE_ADDRESS,
|
|
362
|
+
hci_source,
|
|
363
|
+
hci_sink,
|
|
364
|
+
)
|
|
365
|
+
await device.power_on()
|
|
366
|
+
discoverer = BroadcastDiscoverer(device, filter_duplicates, sync_timeout)
|
|
367
|
+
await discoverer.run()
|
|
368
|
+
await hci_source.terminated
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
# -----------------------------------------------------------------------------
|
|
372
|
+
# Main
|
|
373
|
+
# -----------------------------------------------------------------------------
|
|
374
|
+
@click.group()
|
|
375
|
+
@click.pass_context
|
|
376
|
+
def auracast(
|
|
377
|
+
ctx,
|
|
378
|
+
):
|
|
379
|
+
ctx.ensure_object(dict)
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
@auracast.command('discover-broadcasts')
|
|
383
|
+
@click.option(
|
|
384
|
+
'--filter-duplicates', is_flag=True, default=False, help='Filter duplicates'
|
|
385
|
+
)
|
|
386
|
+
@click.option(
|
|
387
|
+
'--sync-timeout',
|
|
388
|
+
metavar='SYNC_TIMEOUT',
|
|
389
|
+
type=float,
|
|
390
|
+
default=5.0,
|
|
391
|
+
help='Sync timeout (in seconds)',
|
|
392
|
+
)
|
|
393
|
+
@click.argument('transport')
|
|
394
|
+
@click.pass_context
|
|
395
|
+
def discover_broadcasts(ctx, filter_duplicates, sync_timeout, transport):
|
|
396
|
+
"""Discover public broadcasts"""
|
|
397
|
+
asyncio.run(run_discover_broadcasts(filter_duplicates, sync_timeout, transport))
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
def main():
|
|
401
|
+
logging.basicConfig(level=os.environ.get('BUMBLE_LOGLEVEL', 'INFO').upper())
|
|
402
|
+
auracast()
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
# -----------------------------------------------------------------------------
|
|
406
|
+
if __name__ == "__main__":
|
|
407
|
+
main() # pylint: disable=no-value-for-parameter
|
|
@@ -40,6 +40,8 @@ from bumble.hci import (
|
|
|
40
40
|
HCI_LE_1M_PHY,
|
|
41
41
|
HCI_LE_2M_PHY,
|
|
42
42
|
HCI_LE_CODED_PHY,
|
|
43
|
+
HCI_CENTRAL_ROLE,
|
|
44
|
+
HCI_PERIPHERAL_ROLE,
|
|
43
45
|
HCI_Constant,
|
|
44
46
|
HCI_Error,
|
|
45
47
|
HCI_StatusError,
|
|
@@ -57,6 +59,7 @@ from bumble.transport import open_transport_or_link
|
|
|
57
59
|
import bumble.rfcomm
|
|
58
60
|
import bumble.core
|
|
59
61
|
from bumble.utils import AsyncRunner
|
|
62
|
+
from bumble.pairing import PairingConfig
|
|
60
63
|
|
|
61
64
|
|
|
62
65
|
# -----------------------------------------------------------------------------
|
|
@@ -128,40 +131,34 @@ def le_phy_name(phy_id):
|
|
|
128
131
|
|
|
129
132
|
|
|
130
133
|
def print_connection(connection):
|
|
134
|
+
params = []
|
|
131
135
|
if connection.transport == BT_LE_TRANSPORT:
|
|
132
|
-
|
|
136
|
+
params.append(
|
|
133
137
|
'PHY='
|
|
134
138
|
f'TX:{le_phy_name(connection.phy.tx_phy)}/'
|
|
135
139
|
f'RX:{le_phy_name(connection.phy.rx_phy)}'
|
|
136
140
|
)
|
|
137
141
|
|
|
138
|
-
|
|
142
|
+
params.append(
|
|
139
143
|
'DL=('
|
|
140
144
|
f'TX:{connection.data_length[0]}/{connection.data_length[1]},'
|
|
141
145
|
f'RX:{connection.data_length[2]}/{connection.data_length[3]}'
|
|
142
146
|
')'
|
|
143
147
|
)
|
|
144
|
-
|
|
148
|
+
|
|
149
|
+
params.append(
|
|
145
150
|
'Parameters='
|
|
146
151
|
f'{connection.parameters.connection_interval * 1.25:.2f}/'
|
|
147
152
|
f'{connection.parameters.peripheral_latency}/'
|
|
148
153
|
f'{connection.parameters.supervision_timeout * 10} '
|
|
149
154
|
)
|
|
150
155
|
|
|
151
|
-
|
|
152
|
-
phy_state = ''
|
|
153
|
-
data_length = ''
|
|
154
|
-
connection_parameters = ''
|
|
156
|
+
params.append(f'MTU={connection.att_mtu}')
|
|
155
157
|
|
|
156
|
-
|
|
158
|
+
else:
|
|
159
|
+
params.append(f'Role={HCI_Constant.role_name(connection.role)}')
|
|
157
160
|
|
|
158
|
-
logging.info(
|
|
159
|
-
f'{color("@@@ Connection:", "yellow")} '
|
|
160
|
-
f'{connection_parameters} '
|
|
161
|
-
f'{data_length} '
|
|
162
|
-
f'{phy_state} '
|
|
163
|
-
f'MTU={mtu}'
|
|
164
|
-
)
|
|
161
|
+
logging.info(color('@@@ Connection: ', 'yellow') + ' '.join(params))
|
|
165
162
|
|
|
166
163
|
|
|
167
164
|
def make_sdp_records(channel):
|
|
@@ -214,6 +211,17 @@ def log_stats(title, stats):
|
|
|
214
211
|
)
|
|
215
212
|
|
|
216
213
|
|
|
214
|
+
async def switch_roles(connection, role):
|
|
215
|
+
target_role = HCI_CENTRAL_ROLE if role == "central" else HCI_PERIPHERAL_ROLE
|
|
216
|
+
if connection.role != target_role:
|
|
217
|
+
logging.info(f'{color("### Switching roles to:", "cyan")} {role}')
|
|
218
|
+
try:
|
|
219
|
+
await connection.switch_role(target_role)
|
|
220
|
+
logging.info(color('### Role switch complete', 'cyan'))
|
|
221
|
+
except HCI_Error as error:
|
|
222
|
+
logging.info(f'{color("### Role switch failed:", "red")} {error}')
|
|
223
|
+
|
|
224
|
+
|
|
217
225
|
class PacketType(enum.IntEnum):
|
|
218
226
|
RESET = 0
|
|
219
227
|
SEQUENCE = 1
|
|
@@ -1034,6 +1042,10 @@ class RfcommServer(StreamedPacketIO):
|
|
|
1034
1042
|
|
|
1035
1043
|
def on_dlc(self, dlc):
|
|
1036
1044
|
logging.info(color(f'*** DLC connected: {dlc}', 'blue'))
|
|
1045
|
+
if self.credits_threshold is not None:
|
|
1046
|
+
dlc.rx_threshold = self.credits_threshold
|
|
1047
|
+
if self.max_credits is not None:
|
|
1048
|
+
dlc.rx_max_credits = self.max_credits
|
|
1037
1049
|
dlc.sink = self.on_packet
|
|
1038
1050
|
self.io_sink = dlc.write
|
|
1039
1051
|
self.dlc = dlc
|
|
@@ -1063,6 +1075,7 @@ class Central(Connection.Listener):
|
|
|
1063
1075
|
authenticate,
|
|
1064
1076
|
encrypt,
|
|
1065
1077
|
extended_data_length,
|
|
1078
|
+
role_switch,
|
|
1066
1079
|
):
|
|
1067
1080
|
super().__init__()
|
|
1068
1081
|
self.transport = transport
|
|
@@ -1073,6 +1086,7 @@ class Central(Connection.Listener):
|
|
|
1073
1086
|
self.authenticate = authenticate
|
|
1074
1087
|
self.encrypt = encrypt or authenticate
|
|
1075
1088
|
self.extended_data_length = extended_data_length
|
|
1089
|
+
self.role_switch = role_switch
|
|
1076
1090
|
self.device = None
|
|
1077
1091
|
self.connection = None
|
|
1078
1092
|
|
|
@@ -1123,6 +1137,11 @@ class Central(Connection.Listener):
|
|
|
1123
1137
|
role = self.role_factory(mode)
|
|
1124
1138
|
self.device.classic_enabled = self.classic
|
|
1125
1139
|
|
|
1140
|
+
# Set up a pairing config factory with minimal requirements.
|
|
1141
|
+
self.device.pairing_config_factory = lambda _: PairingConfig(
|
|
1142
|
+
sc=False, mitm=False, bonding=False
|
|
1143
|
+
)
|
|
1144
|
+
|
|
1126
1145
|
await self.device.power_on()
|
|
1127
1146
|
|
|
1128
1147
|
if self.classic:
|
|
@@ -1151,6 +1170,10 @@ class Central(Connection.Listener):
|
|
|
1151
1170
|
self.connection.listener = self
|
|
1152
1171
|
print_connection(self.connection)
|
|
1153
1172
|
|
|
1173
|
+
# Switch roles if needed.
|
|
1174
|
+
if self.role_switch:
|
|
1175
|
+
await switch_roles(self.connection, self.role_switch)
|
|
1176
|
+
|
|
1154
1177
|
# Wait a bit after the connection, some controllers aren't very good when
|
|
1155
1178
|
# we start sending data right away while some connection parameters are
|
|
1156
1179
|
# updated post connection
|
|
@@ -1212,20 +1235,30 @@ class Central(Connection.Listener):
|
|
|
1212
1235
|
def on_connection_data_length_change(self):
|
|
1213
1236
|
print_connection(self.connection)
|
|
1214
1237
|
|
|
1238
|
+
def on_role_change(self):
|
|
1239
|
+
print_connection(self.connection)
|
|
1240
|
+
|
|
1215
1241
|
|
|
1216
1242
|
# -----------------------------------------------------------------------------
|
|
1217
1243
|
# Peripheral
|
|
1218
1244
|
# -----------------------------------------------------------------------------
|
|
1219
1245
|
class Peripheral(Device.Listener, Connection.Listener):
|
|
1220
1246
|
def __init__(
|
|
1221
|
-
self,
|
|
1247
|
+
self,
|
|
1248
|
+
transport,
|
|
1249
|
+
role_factory,
|
|
1250
|
+
mode_factory,
|
|
1251
|
+
classic,
|
|
1252
|
+
extended_data_length,
|
|
1253
|
+
role_switch,
|
|
1222
1254
|
):
|
|
1223
1255
|
self.transport = transport
|
|
1224
1256
|
self.classic = classic
|
|
1225
|
-
self.extended_data_length = extended_data_length
|
|
1226
1257
|
self.role_factory = role_factory
|
|
1227
|
-
self.role = None
|
|
1228
1258
|
self.mode_factory = mode_factory
|
|
1259
|
+
self.extended_data_length = extended_data_length
|
|
1260
|
+
self.role_switch = role_switch
|
|
1261
|
+
self.role = None
|
|
1229
1262
|
self.mode = None
|
|
1230
1263
|
self.device = None
|
|
1231
1264
|
self.connection = None
|
|
@@ -1248,6 +1281,11 @@ class Peripheral(Device.Listener, Connection.Listener):
|
|
|
1248
1281
|
self.role = self.role_factory(self.mode)
|
|
1249
1282
|
self.device.classic_enabled = self.classic
|
|
1250
1283
|
|
|
1284
|
+
# Set up a pairing config factory with minimal requirements.
|
|
1285
|
+
self.device.pairing_config_factory = lambda _: PairingConfig(
|
|
1286
|
+
sc=False, mitm=False, bonding=False
|
|
1287
|
+
)
|
|
1288
|
+
|
|
1251
1289
|
await self.device.power_on()
|
|
1252
1290
|
|
|
1253
1291
|
if self.classic:
|
|
@@ -1274,6 +1312,7 @@ class Peripheral(Device.Listener, Connection.Listener):
|
|
|
1274
1312
|
|
|
1275
1313
|
await self.connected.wait()
|
|
1276
1314
|
logging.info(color('### Connected', 'cyan'))
|
|
1315
|
+
print_connection(self.connection)
|
|
1277
1316
|
|
|
1278
1317
|
await self.mode.on_connection(self.connection)
|
|
1279
1318
|
await self.role.run()
|
|
@@ -1290,7 +1329,7 @@ class Peripheral(Device.Listener, Connection.Listener):
|
|
|
1290
1329
|
AsyncRunner.spawn(self.device.set_connectable(False))
|
|
1291
1330
|
|
|
1292
1331
|
# Request a new data length if needed
|
|
1293
|
-
if self.extended_data_length:
|
|
1332
|
+
if not self.classic and self.extended_data_length:
|
|
1294
1333
|
logging.info("+++ Requesting extended data length")
|
|
1295
1334
|
AsyncRunner.spawn(
|
|
1296
1335
|
connection.set_data_length(
|
|
@@ -1298,6 +1337,10 @@ class Peripheral(Device.Listener, Connection.Listener):
|
|
|
1298
1337
|
)
|
|
1299
1338
|
)
|
|
1300
1339
|
|
|
1340
|
+
# Switch roles if needed.
|
|
1341
|
+
if self.role_switch:
|
|
1342
|
+
AsyncRunner.spawn(switch_roles(connection, self.role_switch))
|
|
1343
|
+
|
|
1301
1344
|
def on_disconnection(self, reason):
|
|
1302
1345
|
logging.info(color(f'!!! Disconnection: reason={reason}', 'red'))
|
|
1303
1346
|
self.connection = None
|
|
@@ -1319,6 +1362,9 @@ class Peripheral(Device.Listener, Connection.Listener):
|
|
|
1319
1362
|
def on_connection_data_length_change(self):
|
|
1320
1363
|
print_connection(self.connection)
|
|
1321
1364
|
|
|
1365
|
+
def on_role_change(self):
|
|
1366
|
+
print_connection(self.connection)
|
|
1367
|
+
|
|
1322
1368
|
|
|
1323
1369
|
# -----------------------------------------------------------------------------
|
|
1324
1370
|
def create_mode_factory(ctx, default_mode):
|
|
@@ -1448,6 +1494,11 @@ def create_role_factory(ctx, default_role):
|
|
|
1448
1494
|
'--extended-data-length',
|
|
1449
1495
|
help='Request a data length upon connection, specified as tx_octets/tx_time',
|
|
1450
1496
|
)
|
|
1497
|
+
@click.option(
|
|
1498
|
+
'--role-switch',
|
|
1499
|
+
type=click.Choice(['central', 'peripheral']),
|
|
1500
|
+
help='Request role switch upon connection (central or peripheral)',
|
|
1501
|
+
)
|
|
1451
1502
|
@click.option(
|
|
1452
1503
|
'--rfcomm-channel',
|
|
1453
1504
|
type=int,
|
|
@@ -1512,7 +1563,7 @@ def create_role_factory(ctx, default_role):
|
|
|
1512
1563
|
'--packet-size',
|
|
1513
1564
|
'-s',
|
|
1514
1565
|
metavar='SIZE',
|
|
1515
|
-
type=click.IntRange(8,
|
|
1566
|
+
type=click.IntRange(8, 8192),
|
|
1516
1567
|
default=500,
|
|
1517
1568
|
help='Packet size (client or ping role)',
|
|
1518
1569
|
)
|
|
@@ -1572,6 +1623,7 @@ def bench(
|
|
|
1572
1623
|
mode,
|
|
1573
1624
|
att_mtu,
|
|
1574
1625
|
extended_data_length,
|
|
1626
|
+
role_switch,
|
|
1575
1627
|
packet_size,
|
|
1576
1628
|
packet_count,
|
|
1577
1629
|
start_delay,
|
|
@@ -1614,12 +1666,12 @@ def bench(
|
|
|
1614
1666
|
ctx.obj['repeat_delay'] = repeat_delay
|
|
1615
1667
|
ctx.obj['pace'] = pace
|
|
1616
1668
|
ctx.obj['linger'] = linger
|
|
1617
|
-
|
|
1618
1669
|
ctx.obj['extended_data_length'] = (
|
|
1619
1670
|
[int(x) for x in extended_data_length.split('/')]
|
|
1620
1671
|
if extended_data_length
|
|
1621
1672
|
else None
|
|
1622
1673
|
)
|
|
1674
|
+
ctx.obj['role_switch'] = role_switch
|
|
1623
1675
|
ctx.obj['classic'] = mode in ('rfcomm-client', 'rfcomm-server')
|
|
1624
1676
|
|
|
1625
1677
|
|
|
@@ -1663,6 +1715,7 @@ def central(
|
|
|
1663
1715
|
authenticate,
|
|
1664
1716
|
encrypt or authenticate,
|
|
1665
1717
|
ctx.obj['extended_data_length'],
|
|
1718
|
+
ctx.obj['role_switch'],
|
|
1666
1719
|
).run()
|
|
1667
1720
|
|
|
1668
1721
|
asyncio.run(run_central())
|
|
@@ -1679,10 +1732,11 @@ def peripheral(ctx, transport):
|
|
|
1679
1732
|
async def run_peripheral():
|
|
1680
1733
|
await Peripheral(
|
|
1681
1734
|
transport,
|
|
1682
|
-
ctx.obj['classic'],
|
|
1683
|
-
ctx.obj['extended_data_length'],
|
|
1684
1735
|
role_factory,
|
|
1685
1736
|
mode_factory,
|
|
1737
|
+
ctx.obj['classic'],
|
|
1738
|
+
ctx.obj['extended_data_length'],
|
|
1739
|
+
ctx.obj['role_switch'],
|
|
1686
1740
|
).run()
|
|
1687
1741
|
|
|
1688
1742
|
asyncio.run(run_peripheral())
|