Replies: 1 comment 1 reply
-
|
After digging deeper I discovered that BlueZ virtualized doesn't like a peer_address of If I remove the set accept filter list code and hardcode the According to ChatGPT, the spec mandates that if you use Also the I also tried to run my own code which uses |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Lately we've got trouBLE running on HCI. I'm pretty new to the whole space, but I've found also
btvirtto be included in thebluez-test-tools. This allows you to run a virtualized BLE environment. This could be useful for CI, testing and local developmentI've tried setting this up on my MacOS via first QEMU (no experience) and later via Vagrant + Virtualbox. I've set up a Ubuntu 24.x virtual machine where I've installed
bluezandbluez-test-toolsI wrote myself a README after the aforementioned steps.
vagrant up --provider=virtualbox.. this will boot up a machine with Ubuntu 24.xvagrant sshor output thevagrant ssh-configlater which is handy in conjuction with theJustfilesudo apt-get updateandsudo apt-get install bluez bluez-test-toolsbtvirtsudo modprobe hci_vhcisudo chmod 666 /dev/vhci. Usels -l /dev/vhcito verify it has correct permissionsbtvirt -l2 &hciconfig -asudo hciconfig hci{X} downI've compiled the examples
ble_bas_peripheralandble_bas_centraland ran themBeta Was this translation helpful? Give feedback.
All reactions