bumble 0.0.192__tar.gz → 0.0.193__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.192 → bumble-0.0.193}/.github/workflows/code-check.yml +1 -1
- {bumble-0.0.192 → bumble-0.0.193}/.github/workflows/python-build-test.yml +2 -2
- {bumble-0.0.192 → bumble-0.0.193}/.vscode/settings.json +4 -0
- {bumble-0.0.192/bumble.egg-info → bumble-0.0.193}/PKG-INFO +5 -4
- bumble-0.0.193/apps/lea_unicast/app.py +577 -0
- bumble-0.0.193/apps/lea_unicast/index.html +68 -0
- bumble-0.0.193/apps/lea_unicast/liblc3.wasm +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/_version.py +2 -2
- {bumble-0.0.192 → bumble-0.0.193}/bumble/device.py +157 -118
- {bumble-0.0.192 → bumble-0.0.193}/bumble/hci.py +14 -25
- {bumble-0.0.192 → bumble-0.0.193}/bumble/hfp.py +279 -31
- {bumble-0.0.192 → bumble-0.0.193}/bumble/host.py +9 -5
- {bumble-0.0.192 → bumble-0.0.193}/bumble/keys.py +7 -4
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/bap.py +52 -11
- {bumble-0.0.192 → bumble-0.0.193}/bumble/rfcomm.py +29 -4
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/common.py +4 -0
- {bumble-0.0.192 → bumble-0.0.193/bumble.egg-info}/PKG-INFO +5 -4
- {bumble-0.0.192 → bumble-0.0.193}/bumble.egg-info/SOURCES.txt +4 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble.egg-info/requires.txt +4 -3
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/bumble.js +21 -3
- bumble-0.0.193/examples/hfp_gateway.html +350 -0
- bumble-0.0.193/examples/hfp_gateway.json +5 -0
- bumble-0.0.193/examples/run_hfp_gateway.py +287 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_unicast_server.py +85 -70
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_vcp_renderer.py +1 -1
- {bumble-0.0.192 → bumble-0.0.193}/setup.cfg +4 -3
- {bumble-0.0.192 → bumble-0.0.193}/tests/bap_test.py +4 -4
- {bumble-0.0.192 → bumble-0.0.193}/tests/device_test.py +97 -2
- {bumble-0.0.192 → bumble-0.0.193}/tests/hfp_test.py +195 -3
- {bumble-0.0.192 → bumble-0.0.193}/tests/rfcomm_test.py +25 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/test_utils.py +8 -1
- {bumble-0.0.192 → bumble-0.0.193}/web/bumble.js +21 -3
- bumble-0.0.192/examples/hfp_gateway.json +0 -4
- bumble-0.0.192/examples/run_hfp_gateway.py +0 -143
- {bumble-0.0.192 → bumble-0.0.193}/.git-blame-ignore-revs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/.github/workflows/codeql-analysis.yml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/.github/workflows/python-avatar.yml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/.github/workflows/python-publish.yml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/.gitignore +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/CONTRIBUTING.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/LICENSE +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/README.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/README.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/bench.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/ble_rpa_tool.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/console.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/controller_info.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/controller_loopback.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/controllers.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/gatt_dump.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/gg_bridge.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/hci_bridge.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/l2cap_bridge.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/link_relay/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/link_relay/link_relay.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/link_relay/logging.yml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/pair.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/pandora_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/scan.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/show.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/speaker/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/speaker/logo.svg +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/speaker/speaker.css +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/speaker/speaker.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/speaker/speaker.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/speaker/speaker.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/unbond.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/apps/usb_probe.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/a2dp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/at.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/att.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/avc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/avctp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/avdtp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/avrcp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/bridge.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/codecs.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/colors.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/company_ids.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/controller.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/core.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/crypto.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/decoder.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/drivers/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/drivers/common.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/drivers/intel.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/drivers/rtk.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/gap.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/gatt.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/gatt_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/gatt_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/helpers.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/hid.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/l2cap.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/link.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pairing.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pandora/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pandora/config.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pandora/device.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pandora/host.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pandora/py.typed +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pandora/security.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/pandora/utils.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/asha_service.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/battery_service.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/cap.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/csip.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/device_information_service.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/heart_rate_service.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/py.typed +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/profiles/vcp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/py.typed +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/sdp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/smp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/snoop.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/android_emulator.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/android_netsim.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/file.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/common_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/common_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/common_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/hci_packet_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/hci_packet_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/hci_packet_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/packet_streamer_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/packet_streamer_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/packet_streamer_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/startup_pb2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/startup_pb2.pyi +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/grpc_protobuf/startup_pb2_grpc.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/hci_socket.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/pty.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/py.typed +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/pyusb.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/serial.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/tcp_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/tcp_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/udp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/usb.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/vhci.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/ws_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/transport/ws_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/utils.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/vendor/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/vendor/android/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/vendor/android/hci.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/vendor/zephyr/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble/vendor/zephyr/hci.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble.egg-info/dependency_links.txt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble.egg-info/entry_points.txt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/bumble.egg-info/top_level.txt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/README.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo.svg +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo.vectornator/Artboard0.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo.vectornator/Document.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo.vectornator/Manifest.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo.vectornator/Thumbnail.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo.vectornator/UndoHistory.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo_framed.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo_framed.svg +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo_framed.vectornator/Artboard0.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo_framed.vectornator/Document.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo_framed.vectornator/Manifest.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo_framed.vectornator/Thumbnail.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/images/logo_framed.vectornator/UndoHistory.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/mkdocs.yml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/requirements.txt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/api/examples.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/api/guide.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/api/reference.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/bench.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/console.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/gatt_dump.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/gg_bridge.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/hci_bridge.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/link_relay.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/pair.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/show.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/speaker.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/unbond.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/apps_and_tools/usb_probe.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/components/controller.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/components/gatt.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/components/host.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/components/security_manager.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/development/code_style.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/development/contributing.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/development/python_environments.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/downloads/zephyr/hci_usb.zip +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/drivers/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/drivers/realtek.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/examples/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/extras/android_bt_bench.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/extras/android_remote_hci.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/extras/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/getting_started.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hardware/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/index.toml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/scanner/scanner.css +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/scanner/scanner.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/scanner/scanner.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/scanner/scanner.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/speaker/logo.svg +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/speaker/speaker.css +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/speaker/speaker.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/speaker/speaker.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/speaker/speaker.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/hive/web/ui.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/images/bumble_layers.svg +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/images/console_screenshot.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/images/favicon.ico +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/images/logo.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/images/logo_framed.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/images/speaker_screenshot.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/platforms/android.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/platforms/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/platforms/linux.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/platforms/macos.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/platforms/windows.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/platforms/winusb_driver.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/platforms/zephyr.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/android_emulator.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/file.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/hci_socket.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/pty.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/serial.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/tcp_client.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/tcp_server.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/udp.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/usb.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/vhci.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/ws_client.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/transports/ws_server.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/use_cases/index.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/use_cases/use_case_1.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/use_cases/use_case_2.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/use_cases/use_case_3.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/use_cases/use_case_4.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/use_cases/use_case_5.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/src/use_cases/use_case_6.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/docs/mkdocs/theme/partials/footer.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/environment.yml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/README.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/a2dp_sink1.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/asha_sink1.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/asha_sink2.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/async_runner.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/avrcp_as_sink.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/battery_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/battery_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/classic1.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/classic2.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/device1.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/device2.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/device3.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/device_information_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/device_information_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/heart_rate_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/heart_rate_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/hfp_handsfree.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/hfp_handsfree.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/hid_key_map.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/hid_keyboard.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/hid_report_parser.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/keyboard.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/keyboard.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/keyboard.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/leaudio.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/leaudio_with_classic.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_a2dp_info.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_a2dp_sink.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_a2dp_source.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_advertiser.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_asha_sink.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_avrcp.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_cig_setup.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_classic_connect.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_classic_discoverable.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_classic_discovery.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_connect_and_encrypt.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_controller.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_controller_with_scanner.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_csis_servers.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_device_with_snooper.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_esco_connection.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_extended_advertiser.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_extended_advertiser_2.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_gatt_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_gatt_client_and_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_gatt_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_hfp_handsfree.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_hid_device.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_hid_host.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_notifier.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_rfcomm_client.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_rfcomm_server.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/run_scanner.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/speaker.json +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/examples/vcp_renderer.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/.gitignore +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/.gitignore +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/build.gradle.kts +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/proguard-rules.pro +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/ic_launcher-playstore.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/L2capClient.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/L2capServer.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/MainActivity.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Model.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Packet.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Receiver.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/RfcommClient.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/RfcommServer.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Sender.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/SocketClient.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/SocketServer.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Color.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Theme.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Type.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/drawable/ic_launcher_background.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/drawable/ic_launcher_foreground.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/values/colors.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/values/ic_launcher_background.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/values/strings.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/values/themes.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/xml/backup_rules.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/app/src/main/res/xml/data_extraction_rules.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/build.gradle.kts +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/gradle/libs.versions.toml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/gradle/wrapper/gradle-wrapper.jar +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/gradle/wrapper/gradle-wrapper.properties +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/gradle.properties +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/gradlew +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/gradlew.bat +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/BtBench/settings.gradle.kts +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/.gitignore +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/.gitignore +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/build.gradle.kts +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/proguard-rules.pro +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/IBluetoothHci.aidl +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/IBluetoothHciCallbacks.aidl +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/Status.aidl +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/hidl/bluetooth/1.1/IBluetoothHci.hal +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/hidl/bluetooth/1.1/IBluetoothHciCallbacks.hal +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/ic_launcher-playstore.png +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/IBluetoothHci.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/Status.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/IBluetoothHci.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/Status.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_1/IBluetoothHci.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_1/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/CommandLineInterface.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciHal.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciHalCallback.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciPacket.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciParser.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciProxy.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciServer.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/MainActivity.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Color.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Theme.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Type.kt +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/values/colors.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/values/ic_launcher_background.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/values/strings.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/values/themes.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/xml/backup_rules.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/app/src/main/res/xml/data_extraction_rules.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/build.gradle.kts +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/gradle/libs.versions.toml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/gradle/wrapper/gradle-wrapper.jar +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/gradle/wrapper/gradle-wrapper.properties +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/gradle.properties +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/gradlew +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/gradlew.bat +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/.gitignore +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/build.gradle.kts +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/consumer-rules.pro +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/proguard-rules.pro +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/internal/hidl/base/V1_0/DebugInfo.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/internal/hidl/base/V1_0/IBase.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/HidlSupport.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwBinder.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwBlob.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwParcel.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/IHwBinder.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/IHwInterface.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/NativeHandle.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/lib/src/main/java/android/os/ServiceManager.java +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/scripts/generate_java_from_aidl.sh +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/extras/android/RemoteHCI/settings.gradle.kts +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/noxfile.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/pyproject.toml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/.gitignore +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/CHANGELOG.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/Cargo.lock +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/Cargo.toml +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/README.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/examples/battery_client.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/examples/broadcast.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/examples/scanner.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/pytests/assigned_numbers.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/pytests/pytests.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/pytests/wrapper/drivers.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/pytests/wrapper/hci.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/pytests/wrapper/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/pytests/wrapper/transport.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/resources/test/firmware/realtek/README.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/resources/test/firmware/realtek/rtl8723b_fw_structure.bin +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/resources/test/firmware/realtek/rtl8761bu_fw_structure.bin +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/adv.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/cli/firmware/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/cli/firmware/rtk.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/cli/l2cap/client_bridge.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/cli/l2cap/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/cli/l2cap/server_bridge.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/cli/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/cli/usb/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/internal/drivers/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/internal/drivers/rtk.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/internal/hci/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/internal/hci/packets.pdl +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/internal/hci/tests.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/internal/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/lib.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/main.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/assigned_numbers/company_ids.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/assigned_numbers/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/assigned_numbers/services.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/common.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/controller.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/core.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/device/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/device/tests.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/drivers/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/drivers/rtk.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/gatt_client.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/hci.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/host.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/l2cap.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/link.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/logging.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/mod.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/profile.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/src/wrapper/transport.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/tools/file_header.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/rust/tools/gen_assigned_numbers.rs +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/scripts/process_android_emulator_protos.sh +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/scripts/process_android_netsim_protos.sh +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/setup.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tasks.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/a2dp_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/at_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/avdtp_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/avrcp_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/cap_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/codecs_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/core_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/csip_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/decoder_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/g722_sample.g722 +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/gatt_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/hci_data_001.bin +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/hci_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/host_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/import_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/keystore_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/l2cap_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/pytest.ini +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/sdp_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/self_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/smp_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/transport_tcp_server_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/transport_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/utils_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tests/vcp_test.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tools/__init__.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tools/generate_company_id_list.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tools/rtk_fw_download.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/tools/rtk_util.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/README.md +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/heart_rate_monitor/heart_rate_monitor.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/heart_rate_monitor/heart_rate_monitor.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/heart_rate_monitor/heart_rate_monitor.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/scanner/scanner.css +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/scanner/scanner.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/scanner/scanner.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/scanner/scanner.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/speaker/logo.svg +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/speaker/speaker.css +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/speaker/speaker.html +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/speaker/speaker.js +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/speaker/speaker.py +0 -0
- {bumble-0.0.192 → bumble-0.0.193}/web/ui.js +0 -0
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
strategy:
|
|
17
17
|
matrix:
|
|
18
18
|
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
|
|
19
|
-
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
19
|
+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
20
20
|
fail-fast: false
|
|
21
21
|
|
|
22
22
|
steps:
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
runs-on: ubuntu-latest
|
|
47
47
|
strategy:
|
|
48
48
|
matrix:
|
|
49
|
-
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
|
|
49
|
+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
|
|
50
50
|
rust-version: [ "1.76.0", "stable" ]
|
|
51
51
|
fail-fast: false
|
|
52
52
|
steps:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"cSpell.words": [
|
|
3
3
|
"Abortable",
|
|
4
|
+
"aiohttp",
|
|
4
5
|
"altsetting",
|
|
5
6
|
"ansiblue",
|
|
6
7
|
"ansicyan",
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
"ansired",
|
|
10
11
|
"ansiyellow",
|
|
11
12
|
"appendleft",
|
|
13
|
+
"ascs",
|
|
12
14
|
"ASHA",
|
|
13
15
|
"asyncio",
|
|
14
16
|
"ATRAC",
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
"keyup",
|
|
44
46
|
"levelname",
|
|
45
47
|
"libc",
|
|
48
|
+
"liblc",
|
|
46
49
|
"libusb",
|
|
47
50
|
"MITM",
|
|
48
51
|
"MSBC",
|
|
@@ -78,6 +81,7 @@
|
|
|
78
81
|
"unmuted",
|
|
79
82
|
"usbmodem",
|
|
80
83
|
"vhci",
|
|
84
|
+
"wasmtime",
|
|
81
85
|
"websockets",
|
|
82
86
|
"xcursor",
|
|
83
87
|
"ycursor"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bumble
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.193
|
|
4
4
|
Summary: Bluetooth Stack for Apps, Emulation, Test and Experimentation
|
|
5
5
|
Home-page: https://github.com/google/bumble
|
|
6
6
|
Author: Google
|
|
@@ -29,7 +29,7 @@ Requires-Dist: websockets>=12.0; platform_system != "Emscripten"
|
|
|
29
29
|
Provides-Extra: build
|
|
30
30
|
Requires-Dist: build>=0.7; extra == "build"
|
|
31
31
|
Provides-Extra: test
|
|
32
|
-
Requires-Dist: pytest>=8.
|
|
32
|
+
Requires-Dist: pytest>=8.2; extra == "test"
|
|
33
33
|
Requires-Dist: pytest-asyncio>=0.23.5; extra == "test"
|
|
34
34
|
Requires-Dist: pytest-html>=3.2.0; extra == "test"
|
|
35
35
|
Requires-Dist: coverage>=6.4; extra == "test"
|
|
@@ -37,13 +37,14 @@ Provides-Extra: development
|
|
|
37
37
|
Requires-Dist: black==24.3; extra == "development"
|
|
38
38
|
Requires-Dist: grpcio-tools>=1.62.1; extra == "development"
|
|
39
39
|
Requires-Dist: invoke>=1.7.3; extra == "development"
|
|
40
|
-
Requires-Dist: mypy==1.
|
|
40
|
+
Requires-Dist: mypy==1.10.0; extra == "development"
|
|
41
41
|
Requires-Dist: nox>=2022; extra == "development"
|
|
42
|
-
Requires-Dist: pylint==
|
|
42
|
+
Requires-Dist: pylint==3.1.0; extra == "development"
|
|
43
43
|
Requires-Dist: pyyaml>=6.0; extra == "development"
|
|
44
44
|
Requires-Dist: types-appdirs>=1.4.3; extra == "development"
|
|
45
45
|
Requires-Dist: types-invoke>=1.7.3; extra == "development"
|
|
46
46
|
Requires-Dist: types-protobuf>=4.21.0; extra == "development"
|
|
47
|
+
Requires-Dist: wasmtime==20.0.0; extra == "development"
|
|
47
48
|
Provides-Extra: avatar
|
|
48
49
|
Requires-Dist: pandora-avatar==0.0.9; extra == "avatar"
|
|
49
50
|
Requires-Dist: rootcanal==1.10.0; python_version >= "3.10" and extra == "avatar"
|
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
# Copyright 2021-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 datetime
|
|
21
|
+
import enum
|
|
22
|
+
import functools
|
|
23
|
+
from importlib import resources
|
|
24
|
+
import json
|
|
25
|
+
import os
|
|
26
|
+
import logging
|
|
27
|
+
import pathlib
|
|
28
|
+
from typing import Optional, List, cast
|
|
29
|
+
import weakref
|
|
30
|
+
import struct
|
|
31
|
+
|
|
32
|
+
import ctypes
|
|
33
|
+
import wasmtime
|
|
34
|
+
import wasmtime.loader
|
|
35
|
+
import liblc3 # type: ignore
|
|
36
|
+
import logging
|
|
37
|
+
|
|
38
|
+
import click
|
|
39
|
+
import aiohttp.web
|
|
40
|
+
|
|
41
|
+
import bumble
|
|
42
|
+
from bumble.core import AdvertisingData
|
|
43
|
+
from bumble.colors import color
|
|
44
|
+
from bumble.device import Device, DeviceConfiguration, AdvertisingParameters
|
|
45
|
+
from bumble.transport import open_transport
|
|
46
|
+
from bumble.profiles import bap
|
|
47
|
+
from bumble.hci import Address, CodecID, CodingFormat, HCI_IsoDataPacket
|
|
48
|
+
|
|
49
|
+
# -----------------------------------------------------------------------------
|
|
50
|
+
# Logging
|
|
51
|
+
# -----------------------------------------------------------------------------
|
|
52
|
+
logger = logging.getLogger(__name__)
|
|
53
|
+
|
|
54
|
+
# -----------------------------------------------------------------------------
|
|
55
|
+
# Constants
|
|
56
|
+
# -----------------------------------------------------------------------------
|
|
57
|
+
DEFAULT_UI_PORT = 7654
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def _sink_pac_record() -> bap.PacRecord:
|
|
61
|
+
return bap.PacRecord(
|
|
62
|
+
coding_format=CodingFormat(CodecID.LC3),
|
|
63
|
+
codec_specific_capabilities=bap.CodecSpecificCapabilities(
|
|
64
|
+
supported_sampling_frequencies=(
|
|
65
|
+
bap.SupportedSamplingFrequency.FREQ_8000
|
|
66
|
+
| bap.SupportedSamplingFrequency.FREQ_16000
|
|
67
|
+
| bap.SupportedSamplingFrequency.FREQ_24000
|
|
68
|
+
| bap.SupportedSamplingFrequency.FREQ_32000
|
|
69
|
+
| bap.SupportedSamplingFrequency.FREQ_48000
|
|
70
|
+
),
|
|
71
|
+
supported_frame_durations=(
|
|
72
|
+
bap.SupportedFrameDuration.DURATION_10000_US_SUPPORTED
|
|
73
|
+
),
|
|
74
|
+
supported_audio_channel_count=[1, 2],
|
|
75
|
+
min_octets_per_codec_frame=26,
|
|
76
|
+
max_octets_per_codec_frame=240,
|
|
77
|
+
supported_max_codec_frames_per_sdu=2,
|
|
78
|
+
),
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _source_pac_record() -> bap.PacRecord:
|
|
83
|
+
return bap.PacRecord(
|
|
84
|
+
coding_format=CodingFormat(CodecID.LC3),
|
|
85
|
+
codec_specific_capabilities=bap.CodecSpecificCapabilities(
|
|
86
|
+
supported_sampling_frequencies=(
|
|
87
|
+
bap.SupportedSamplingFrequency.FREQ_8000
|
|
88
|
+
| bap.SupportedSamplingFrequency.FREQ_16000
|
|
89
|
+
| bap.SupportedSamplingFrequency.FREQ_24000
|
|
90
|
+
| bap.SupportedSamplingFrequency.FREQ_32000
|
|
91
|
+
| bap.SupportedSamplingFrequency.FREQ_48000
|
|
92
|
+
),
|
|
93
|
+
supported_frame_durations=(
|
|
94
|
+
bap.SupportedFrameDuration.DURATION_10000_US_SUPPORTED
|
|
95
|
+
),
|
|
96
|
+
supported_audio_channel_count=[1],
|
|
97
|
+
min_octets_per_codec_frame=30,
|
|
98
|
+
max_octets_per_codec_frame=100,
|
|
99
|
+
supported_max_codec_frames_per_sdu=1,
|
|
100
|
+
),
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
# -----------------------------------------------------------------------------
|
|
105
|
+
# WASM - liblc3
|
|
106
|
+
# -----------------------------------------------------------------------------
|
|
107
|
+
store = wasmtime.loader.store
|
|
108
|
+
_memory = cast(wasmtime.Memory, liblc3.memory)
|
|
109
|
+
STACK_POINTER = _memory.data_len(store)
|
|
110
|
+
_memory.grow(store, 1)
|
|
111
|
+
# Mapping wasmtime memory to linear address
|
|
112
|
+
memory = (ctypes.c_ubyte * _memory.data_len(store)).from_address(
|
|
113
|
+
ctypes.addressof(_memory.data_ptr(store).contents) # type: ignore
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class Liblc3PcmFormat(enum.IntEnum):
|
|
118
|
+
S16 = 0
|
|
119
|
+
S24 = 1
|
|
120
|
+
S24_3LE = 2
|
|
121
|
+
FLOAT = 3
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
MAX_DECODER_SIZE = liblc3.lc3_decoder_size(10000, 48000)
|
|
125
|
+
MAX_ENCODER_SIZE = liblc3.lc3_encoder_size(10000, 48000)
|
|
126
|
+
|
|
127
|
+
DECODER_STACK_POINTER = STACK_POINTER
|
|
128
|
+
ENCODER_STACK_POINTER = DECODER_STACK_POINTER + MAX_DECODER_SIZE * 2
|
|
129
|
+
DECODE_BUFFER_STACK_POINTER = ENCODER_STACK_POINTER + MAX_ENCODER_SIZE * 2
|
|
130
|
+
ENCODE_BUFFER_STACK_POINTER = DECODE_BUFFER_STACK_POINTER + 8192
|
|
131
|
+
DEFAULT_PCM_SAMPLE_RATE = 48000
|
|
132
|
+
DEFAULT_PCM_FORMAT = Liblc3PcmFormat.S16
|
|
133
|
+
DEFAULT_PCM_BYTES_PER_SAMPLE = 2
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
encoders: List[int] = []
|
|
137
|
+
decoders: List[int] = []
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def setup_encoders(
|
|
141
|
+
sample_rate_hz: int, frame_duration_us: int, num_channels: int
|
|
142
|
+
) -> None:
|
|
143
|
+
logger.info(
|
|
144
|
+
f"setup_encoders {sample_rate_hz}Hz {frame_duration_us}us {num_channels}channels"
|
|
145
|
+
)
|
|
146
|
+
encoders[:num_channels] = [
|
|
147
|
+
liblc3.lc3_setup_encoder(
|
|
148
|
+
frame_duration_us,
|
|
149
|
+
sample_rate_hz,
|
|
150
|
+
DEFAULT_PCM_SAMPLE_RATE, # Input sample rate
|
|
151
|
+
ENCODER_STACK_POINTER + MAX_ENCODER_SIZE * i,
|
|
152
|
+
)
|
|
153
|
+
for i in range(num_channels)
|
|
154
|
+
]
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def setup_decoders(
|
|
158
|
+
sample_rate_hz: int, frame_duration_us: int, num_channels: int
|
|
159
|
+
) -> None:
|
|
160
|
+
logger.info(
|
|
161
|
+
f"setup_decoders {sample_rate_hz}Hz {frame_duration_us}us {num_channels}channels"
|
|
162
|
+
)
|
|
163
|
+
decoders[:num_channels] = [
|
|
164
|
+
liblc3.lc3_setup_decoder(
|
|
165
|
+
frame_duration_us,
|
|
166
|
+
sample_rate_hz,
|
|
167
|
+
DEFAULT_PCM_SAMPLE_RATE, # Output sample rate
|
|
168
|
+
DECODER_STACK_POINTER + MAX_DECODER_SIZE * i,
|
|
169
|
+
)
|
|
170
|
+
for i in range(num_channels)
|
|
171
|
+
]
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def decode(
|
|
175
|
+
frame_duration_us: int,
|
|
176
|
+
num_channels: int,
|
|
177
|
+
input_bytes: bytes,
|
|
178
|
+
) -> bytes:
|
|
179
|
+
if not input_bytes:
|
|
180
|
+
return b''
|
|
181
|
+
|
|
182
|
+
input_buffer_offset = DECODE_BUFFER_STACK_POINTER
|
|
183
|
+
input_buffer_size = len(input_bytes)
|
|
184
|
+
input_bytes_per_frame = input_buffer_size // num_channels
|
|
185
|
+
|
|
186
|
+
# Copy into wasm
|
|
187
|
+
memory[input_buffer_offset : input_buffer_offset + input_buffer_size] = input_bytes # type: ignore
|
|
188
|
+
|
|
189
|
+
output_buffer_offset = input_buffer_offset + input_buffer_size
|
|
190
|
+
output_buffer_size = (
|
|
191
|
+
liblc3.lc3_frame_samples(frame_duration_us, DEFAULT_PCM_SAMPLE_RATE)
|
|
192
|
+
* DEFAULT_PCM_BYTES_PER_SAMPLE
|
|
193
|
+
* num_channels
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
for i in range(num_channels):
|
|
197
|
+
res = liblc3.lc3_decode(
|
|
198
|
+
decoders[i],
|
|
199
|
+
input_buffer_offset + input_bytes_per_frame * i,
|
|
200
|
+
input_bytes_per_frame,
|
|
201
|
+
DEFAULT_PCM_FORMAT,
|
|
202
|
+
output_buffer_offset + i * DEFAULT_PCM_BYTES_PER_SAMPLE,
|
|
203
|
+
num_channels, # Stride
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
if res != 0:
|
|
207
|
+
logging.error(f"Parsing failed, res={res}")
|
|
208
|
+
|
|
209
|
+
# Extract decoded data from the output buffer
|
|
210
|
+
return bytes(
|
|
211
|
+
memory[output_buffer_offset : output_buffer_offset + output_buffer_size]
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
def encode(
|
|
216
|
+
sdu_length: int,
|
|
217
|
+
num_channels: int,
|
|
218
|
+
stride: int,
|
|
219
|
+
input_bytes: bytes,
|
|
220
|
+
) -> bytes:
|
|
221
|
+
if not input_bytes:
|
|
222
|
+
return b''
|
|
223
|
+
|
|
224
|
+
input_buffer_offset = ENCODE_BUFFER_STACK_POINTER
|
|
225
|
+
input_buffer_size = len(input_bytes)
|
|
226
|
+
|
|
227
|
+
# Copy into wasm
|
|
228
|
+
memory[input_buffer_offset : input_buffer_offset + input_buffer_size] = input_bytes # type: ignore
|
|
229
|
+
|
|
230
|
+
output_buffer_offset = input_buffer_offset + input_buffer_size
|
|
231
|
+
output_buffer_size = sdu_length
|
|
232
|
+
output_frame_size = output_buffer_size // num_channels
|
|
233
|
+
|
|
234
|
+
for i in range(num_channels):
|
|
235
|
+
res = liblc3.lc3_encode(
|
|
236
|
+
encoders[i],
|
|
237
|
+
DEFAULT_PCM_FORMAT,
|
|
238
|
+
input_buffer_offset + DEFAULT_PCM_BYTES_PER_SAMPLE * i,
|
|
239
|
+
stride,
|
|
240
|
+
output_frame_size,
|
|
241
|
+
output_buffer_offset + output_frame_size * i,
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
if res != 0:
|
|
245
|
+
logging.error(f"Parsing failed, res={res}")
|
|
246
|
+
|
|
247
|
+
# Extract decoded data from the output buffer
|
|
248
|
+
return bytes(
|
|
249
|
+
memory[output_buffer_offset : output_buffer_offset + output_buffer_size]
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
async def lc3_source_task(
|
|
254
|
+
filename: str,
|
|
255
|
+
sdu_length: int,
|
|
256
|
+
frame_duration_us: int,
|
|
257
|
+
device: Device,
|
|
258
|
+
cis_handle: int,
|
|
259
|
+
) -> None:
|
|
260
|
+
with open(filename, 'rb') as f:
|
|
261
|
+
header = f.read(44)
|
|
262
|
+
assert header[8:12] == b'WAVE'
|
|
263
|
+
|
|
264
|
+
pcm_num_channel, pcm_sample_rate, _byte_rate, _block_align, bits_per_sample = (
|
|
265
|
+
struct.unpack("<HIIHH", header[22:36])
|
|
266
|
+
)
|
|
267
|
+
assert pcm_sample_rate == DEFAULT_PCM_SAMPLE_RATE
|
|
268
|
+
assert bits_per_sample == DEFAULT_PCM_BYTES_PER_SAMPLE * 8
|
|
269
|
+
|
|
270
|
+
frame_bytes = (
|
|
271
|
+
liblc3.lc3_frame_samples(frame_duration_us, DEFAULT_PCM_SAMPLE_RATE)
|
|
272
|
+
* DEFAULT_PCM_BYTES_PER_SAMPLE
|
|
273
|
+
)
|
|
274
|
+
packet_sequence_number = 0
|
|
275
|
+
|
|
276
|
+
while True:
|
|
277
|
+
next_round = datetime.datetime.now() + datetime.timedelta(
|
|
278
|
+
microseconds=frame_duration_us
|
|
279
|
+
)
|
|
280
|
+
pcm_data = f.read(frame_bytes)
|
|
281
|
+
sdu = encode(sdu_length, pcm_num_channel, pcm_num_channel, pcm_data)
|
|
282
|
+
|
|
283
|
+
iso_packet = HCI_IsoDataPacket(
|
|
284
|
+
connection_handle=cis_handle,
|
|
285
|
+
data_total_length=sdu_length + 4,
|
|
286
|
+
packet_sequence_number=packet_sequence_number,
|
|
287
|
+
pb_flag=0b10,
|
|
288
|
+
packet_status_flag=0,
|
|
289
|
+
iso_sdu_length=sdu_length,
|
|
290
|
+
iso_sdu_fragment=sdu,
|
|
291
|
+
)
|
|
292
|
+
device.host.send_hci_packet(iso_packet)
|
|
293
|
+
packet_sequence_number += 1
|
|
294
|
+
sleep_time = next_round - datetime.datetime.now()
|
|
295
|
+
await asyncio.sleep(sleep_time.total_seconds())
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
# -----------------------------------------------------------------------------
|
|
299
|
+
class UiServer:
|
|
300
|
+
speaker: weakref.ReferenceType[Speaker]
|
|
301
|
+
port: int
|
|
302
|
+
|
|
303
|
+
def __init__(self, speaker: Speaker, port: int) -> None:
|
|
304
|
+
self.speaker = weakref.ref(speaker)
|
|
305
|
+
self.port = port
|
|
306
|
+
self.channel_socket = None
|
|
307
|
+
|
|
308
|
+
async def start_http(self) -> None:
|
|
309
|
+
"""Start the UI HTTP server."""
|
|
310
|
+
|
|
311
|
+
app = aiohttp.web.Application()
|
|
312
|
+
app.add_routes(
|
|
313
|
+
[
|
|
314
|
+
aiohttp.web.get('/', self.get_static),
|
|
315
|
+
aiohttp.web.get('/index.html', self.get_static),
|
|
316
|
+
aiohttp.web.get('/channel', self.get_channel),
|
|
317
|
+
]
|
|
318
|
+
)
|
|
319
|
+
|
|
320
|
+
runner = aiohttp.web.AppRunner(app)
|
|
321
|
+
await runner.setup()
|
|
322
|
+
site = aiohttp.web.TCPSite(runner, 'localhost', self.port)
|
|
323
|
+
print('UI HTTP server at ' + color(f'http://127.0.0.1:{self.port}', 'green'))
|
|
324
|
+
await site.start()
|
|
325
|
+
|
|
326
|
+
async def get_static(self, request):
|
|
327
|
+
path = request.path
|
|
328
|
+
if path == '/':
|
|
329
|
+
path = '/index.html'
|
|
330
|
+
if path.endswith('.html'):
|
|
331
|
+
content_type = 'text/html'
|
|
332
|
+
elif path.endswith('.js'):
|
|
333
|
+
content_type = 'text/javascript'
|
|
334
|
+
elif path.endswith('.css'):
|
|
335
|
+
content_type = 'text/css'
|
|
336
|
+
elif path.endswith('.svg'):
|
|
337
|
+
content_type = 'image/svg+xml'
|
|
338
|
+
else:
|
|
339
|
+
content_type = 'text/plain'
|
|
340
|
+
text = (
|
|
341
|
+
resources.files("bumble.apps.lea_unicast")
|
|
342
|
+
.joinpath(pathlib.Path(path).relative_to('/'))
|
|
343
|
+
.read_text(encoding="utf-8")
|
|
344
|
+
)
|
|
345
|
+
return aiohttp.web.Response(text=text, content_type=content_type)
|
|
346
|
+
|
|
347
|
+
async def get_channel(self, request):
|
|
348
|
+
ws = aiohttp.web.WebSocketResponse()
|
|
349
|
+
await ws.prepare(request)
|
|
350
|
+
|
|
351
|
+
# Process messages until the socket is closed.
|
|
352
|
+
self.channel_socket = ws
|
|
353
|
+
async for message in ws:
|
|
354
|
+
if message.type == aiohttp.WSMsgType.TEXT:
|
|
355
|
+
logger.debug(f'<<< received message: {message.data}')
|
|
356
|
+
await self.on_message(message.data)
|
|
357
|
+
elif message.type == aiohttp.WSMsgType.ERROR:
|
|
358
|
+
logger.debug(
|
|
359
|
+
f'channel connection closed with exception {ws.exception()}'
|
|
360
|
+
)
|
|
361
|
+
|
|
362
|
+
self.channel_socket = None
|
|
363
|
+
logger.debug('--- channel connection closed')
|
|
364
|
+
|
|
365
|
+
return ws
|
|
366
|
+
|
|
367
|
+
async def on_message(self, message_str: str):
|
|
368
|
+
# Parse the message as JSON
|
|
369
|
+
message = json.loads(message_str)
|
|
370
|
+
|
|
371
|
+
# Dispatch the message
|
|
372
|
+
message_type = message['type']
|
|
373
|
+
message_params = message.get('params', {})
|
|
374
|
+
handler = getattr(self, f'on_{message_type}_message')
|
|
375
|
+
if handler:
|
|
376
|
+
await handler(**message_params)
|
|
377
|
+
|
|
378
|
+
async def on_hello_message(self):
|
|
379
|
+
await self.send_message(
|
|
380
|
+
'hello',
|
|
381
|
+
bumble_version=bumble.__version__,
|
|
382
|
+
codec=self.speaker().codec,
|
|
383
|
+
streamState=self.speaker().stream_state.name,
|
|
384
|
+
)
|
|
385
|
+
if connection := self.speaker().connection:
|
|
386
|
+
await self.send_message(
|
|
387
|
+
'connection',
|
|
388
|
+
peer_address=connection.peer_address.to_string(False),
|
|
389
|
+
peer_name=connection.peer_name,
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
async def send_message(self, message_type: str, **kwargs) -> None:
|
|
393
|
+
if self.channel_socket is None:
|
|
394
|
+
return
|
|
395
|
+
|
|
396
|
+
message = {'type': message_type, 'params': kwargs}
|
|
397
|
+
await self.channel_socket.send_json(message)
|
|
398
|
+
|
|
399
|
+
async def send_audio(self, data: bytes) -> None:
|
|
400
|
+
if self.channel_socket is None:
|
|
401
|
+
return
|
|
402
|
+
|
|
403
|
+
try:
|
|
404
|
+
await self.channel_socket.send_bytes(data)
|
|
405
|
+
except Exception as error:
|
|
406
|
+
logger.warning(f'exception while sending audio packet: {error}')
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
# -----------------------------------------------------------------------------
|
|
410
|
+
class Speaker:
|
|
411
|
+
|
|
412
|
+
def __init__(
|
|
413
|
+
self,
|
|
414
|
+
device_config_path: Optional[str],
|
|
415
|
+
ui_port: int,
|
|
416
|
+
transport: str,
|
|
417
|
+
lc3_input_file_path: str,
|
|
418
|
+
):
|
|
419
|
+
self.device_config_path = device_config_path
|
|
420
|
+
self.transport = transport
|
|
421
|
+
self.lc3_input_file_path = lc3_input_file_path
|
|
422
|
+
|
|
423
|
+
# Create an HTTP server for the UI
|
|
424
|
+
self.ui_server = UiServer(speaker=self, port=ui_port)
|
|
425
|
+
|
|
426
|
+
async def run(self) -> None:
|
|
427
|
+
await self.ui_server.start_http()
|
|
428
|
+
|
|
429
|
+
async with await open_transport(self.transport) as hci_transport:
|
|
430
|
+
# Create a device
|
|
431
|
+
if self.device_config_path:
|
|
432
|
+
device_config = DeviceConfiguration.from_file(self.device_config_path)
|
|
433
|
+
else:
|
|
434
|
+
device_config = DeviceConfiguration(
|
|
435
|
+
name="Bumble LE Headphone",
|
|
436
|
+
class_of_device=0x244418,
|
|
437
|
+
keystore="JsonKeyStore",
|
|
438
|
+
advertising_interval_min=25,
|
|
439
|
+
advertising_interval_max=25,
|
|
440
|
+
address=Address('F1:F2:F3:F4:F5:F6'),
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
device_config.le_enabled = True
|
|
444
|
+
device_config.cis_enabled = True
|
|
445
|
+
self.device = Device.from_config_with_hci(
|
|
446
|
+
device_config, hci_transport.source, hci_transport.sink
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
self.device.add_service(
|
|
450
|
+
bap.PublishedAudioCapabilitiesService(
|
|
451
|
+
supported_source_context=bap.ContextType(0xFFFF),
|
|
452
|
+
available_source_context=bap.ContextType(0xFFFF),
|
|
453
|
+
supported_sink_context=bap.ContextType(0xFFFF), # All context types
|
|
454
|
+
available_sink_context=bap.ContextType(0xFFFF), # All context types
|
|
455
|
+
sink_audio_locations=(
|
|
456
|
+
bap.AudioLocation.FRONT_LEFT | bap.AudioLocation.FRONT_RIGHT
|
|
457
|
+
),
|
|
458
|
+
sink_pac=[_sink_pac_record()],
|
|
459
|
+
source_audio_locations=bap.AudioLocation.FRONT_LEFT,
|
|
460
|
+
source_pac=[_source_pac_record()],
|
|
461
|
+
)
|
|
462
|
+
)
|
|
463
|
+
|
|
464
|
+
ascs = bap.AudioStreamControlService(
|
|
465
|
+
self.device, sink_ase_id=[1], source_ase_id=[2]
|
|
466
|
+
)
|
|
467
|
+
self.device.add_service(ascs)
|
|
468
|
+
|
|
469
|
+
advertising_data = bytes(
|
|
470
|
+
AdvertisingData(
|
|
471
|
+
[
|
|
472
|
+
(
|
|
473
|
+
AdvertisingData.COMPLETE_LOCAL_NAME,
|
|
474
|
+
bytes(device_config.name, 'utf-8'),
|
|
475
|
+
),
|
|
476
|
+
(
|
|
477
|
+
AdvertisingData.FLAGS,
|
|
478
|
+
bytes([AdvertisingData.LE_GENERAL_DISCOVERABLE_MODE_FLAG]),
|
|
479
|
+
),
|
|
480
|
+
(
|
|
481
|
+
AdvertisingData.INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,
|
|
482
|
+
bytes(bap.PublishedAudioCapabilitiesService.UUID),
|
|
483
|
+
),
|
|
484
|
+
]
|
|
485
|
+
)
|
|
486
|
+
) + bytes(bap.UnicastServerAdvertisingData())
|
|
487
|
+
|
|
488
|
+
def on_pdu(pdu: HCI_IsoDataPacket, ase: bap.AseStateMachine):
|
|
489
|
+
codec_config = ase.codec_specific_configuration
|
|
490
|
+
assert isinstance(codec_config, bap.CodecSpecificConfiguration)
|
|
491
|
+
pcm = decode(
|
|
492
|
+
codec_config.frame_duration.us,
|
|
493
|
+
codec_config.audio_channel_allocation.channel_count,
|
|
494
|
+
pdu.iso_sdu_fragment,
|
|
495
|
+
)
|
|
496
|
+
self.device.abort_on('disconnection', self.ui_server.send_audio(pcm))
|
|
497
|
+
|
|
498
|
+
def on_ase_state_change(ase: bap.AseStateMachine) -> None:
|
|
499
|
+
if ase.state == bap.AseStateMachine.State.STREAMING:
|
|
500
|
+
codec_config = ase.codec_specific_configuration
|
|
501
|
+
assert isinstance(codec_config, bap.CodecSpecificConfiguration)
|
|
502
|
+
assert ase.cis_link
|
|
503
|
+
if ase.role == bap.AudioRole.SOURCE:
|
|
504
|
+
ase.cis_link.abort_on(
|
|
505
|
+
'disconnection',
|
|
506
|
+
lc3_source_task(
|
|
507
|
+
filename=self.lc3_input_file_path,
|
|
508
|
+
sdu_length=(
|
|
509
|
+
codec_config.codec_frames_per_sdu
|
|
510
|
+
* codec_config.octets_per_codec_frame
|
|
511
|
+
),
|
|
512
|
+
frame_duration_us=codec_config.frame_duration.us,
|
|
513
|
+
device=self.device,
|
|
514
|
+
cis_handle=ase.cis_link.handle,
|
|
515
|
+
),
|
|
516
|
+
)
|
|
517
|
+
else:
|
|
518
|
+
ase.cis_link.sink = functools.partial(on_pdu, ase=ase)
|
|
519
|
+
elif ase.state == bap.AseStateMachine.State.CODEC_CONFIGURED:
|
|
520
|
+
codec_config = ase.codec_specific_configuration
|
|
521
|
+
assert isinstance(codec_config, bap.CodecSpecificConfiguration)
|
|
522
|
+
if ase.role == bap.AudioRole.SOURCE:
|
|
523
|
+
setup_encoders(
|
|
524
|
+
codec_config.sampling_frequency.hz,
|
|
525
|
+
codec_config.frame_duration.us,
|
|
526
|
+
codec_config.audio_channel_allocation.channel_count,
|
|
527
|
+
)
|
|
528
|
+
else:
|
|
529
|
+
setup_decoders(
|
|
530
|
+
codec_config.sampling_frequency.hz,
|
|
531
|
+
codec_config.frame_duration.us,
|
|
532
|
+
codec_config.audio_channel_allocation.channel_count,
|
|
533
|
+
)
|
|
534
|
+
|
|
535
|
+
for ase in ascs.ase_state_machines.values():
|
|
536
|
+
ase.on('state_change', functools.partial(on_ase_state_change, ase=ase))
|
|
537
|
+
|
|
538
|
+
await self.device.power_on()
|
|
539
|
+
await self.device.create_advertising_set(
|
|
540
|
+
advertising_data=advertising_data,
|
|
541
|
+
auto_restart=True,
|
|
542
|
+
advertising_parameters=AdvertisingParameters(
|
|
543
|
+
primary_advertising_interval_min=100,
|
|
544
|
+
primary_advertising_interval_max=100,
|
|
545
|
+
),
|
|
546
|
+
)
|
|
547
|
+
|
|
548
|
+
await hci_transport.source.terminated
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
@click.command()
|
|
552
|
+
@click.option(
|
|
553
|
+
'--ui-port',
|
|
554
|
+
'ui_port',
|
|
555
|
+
metavar='HTTP_PORT',
|
|
556
|
+
default=DEFAULT_UI_PORT,
|
|
557
|
+
show_default=True,
|
|
558
|
+
help='HTTP port for the UI server',
|
|
559
|
+
)
|
|
560
|
+
@click.option('--device-config', metavar='FILENAME', help='Device configuration file')
|
|
561
|
+
@click.argument('transport')
|
|
562
|
+
@click.argument('lc3_file')
|
|
563
|
+
def speaker(ui_port: int, device_config: str, transport: str, lc3_file: str) -> None:
|
|
564
|
+
"""Run the speaker."""
|
|
565
|
+
|
|
566
|
+
asyncio.run(Speaker(device_config, ui_port, transport, lc3_file).run())
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
# -----------------------------------------------------------------------------
|
|
570
|
+
def main():
|
|
571
|
+
logging.basicConfig(level=os.environ.get('BUMBLE_LOGLEVEL', 'WARNING').upper())
|
|
572
|
+
speaker()
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
# -----------------------------------------------------------------------------
|
|
576
|
+
if __name__ == "__main__":
|
|
577
|
+
main() # pylint: disable=no-value-for-parameter
|