This folder contains a Windows-native interactive CLI that can participate in the same Bluetooth RFCOMM MANET used by the Android app.
- Advertise the same custom RFCOMM service UUID as the Android app.
- Accept incoming RFCOMM connections.
- Connect to paired Bluetooth devices that advertise the MANET service.
- Send messages in the same wire format:
ID|SRC|DEST|TTL|DATA
- Relay unseen messages while decrementing TTL.
- Windows with a working Bluetooth adapter
- Python 3.12+
- The packages in
requirements.txt - Android phones paired in Windows Bluetooth settings
cd windows-node
python -m pip install -r requirements.txt- Pair the Android phone in Windows Bluetooth settings.
- Open the Android app on the phone.
- Enable Bluetooth on the phone.
- Tap
Make Discoverable. - Tap
Start Listening. - In Windows Bluetooth settings, allow the PC to be discoverable if you want the phone to connect back to the laptop.
cd windows-node
python manet_node.py --node-id LAPTOPWhen you launch the script it now shows:
- a startup banner
- a guided
menu - command-based control if you prefer typing
- cached paired-device list
- inbox and recent logs views
-
devicesLists paired Bluetooth devices that Windows exposes to the script. -
menuOpens the guided action menu. -
statusShows node status, peer count, and cache counts. -
connect <index>Connects to the numbered device from the lastdevicesrefresh. -
peersShows active RFCOMM peers. -
send <DEST> <MESSAGE>Sends a MANET payload into the mesh. -
inboxShows recently delivered messages. -
logsShows recent event log lines. -
clearClears the terminal and redraws the banner. -
quitStops the node.
manet> devices
1. My Android Phone
\\?\BTHENUM#Dev_...
manet> connect 1
manet> send C hello from laptop
manet> inbox
- Windows Bluetooth device discovery is more reliable with already paired devices.
- Incoming connections from Android to Windows may require Windows discoverability to be enabled in Bluetooth settings.
- This tool is intended for testing and demos, not production mesh routing.