bsworld
A simulation tool for testing Bluetooth hosts under reproducible conditions without physical devices.
What does it do?
When device connections and expected behavior are specified in pytest, each host connects to BSController and communicates in a shared BabbleSim radio environment. Multiple UML guests can run together in one configuration, and simulation time applies to waits and timeouts. Docker-based integration tests produce pytest XML, process logs, HCI captures, and radio traces. The capture files can be opened in Wireshark to investigate controller traffic and radio activity.
Key features
- Define Bluetooth connection setups and expected behavior with pytest
- Simulate multiple hosts concurrently in a shared BabbleSim radio environment
- Apply simulation time to asyncio waits and timeouts
- Generate pytest XML, process logs, HCI captures, and radio traces
- Analyze HCI and radio captures in Wireshark