seemoo-lab / internalblue

Bluetooth experimentation framework for Broadcom and Cypress chips.
678 stars 85 forks source link

Support BTstack Daemon as transport #75

Closed mringwal closed 8 months ago

mringwal commented 8 months ago

This PR implements a new BTstackCore implementation that connects to a local BTstack Daemon over a TCP/IP socket.

By using a user-space Bluetooth Stack, examples become more portable. As BTstack also runs on Windows, it might be possible to use InternalBlue on Windows as well.

An additional benefit could be the option to directly trigger higher protocol/profile interactions with remote device via the Bluetooth stack directly from the Python via the socket connection.

BTsnoop logging is not supported yet as BTstack writes an Apple PacketLogger HCI trace by default.

The CLI comes up and BTstack initialized the Bluetooth Controller when using internalblue = BTstackCore(), but no additional example have been created/tested.

jiska2342 commented 8 months ago

Thank you for adding BTStack! 🎉