-
Notifications
You must be signed in to change notification settings - Fork 15
Hotspot Bluetooth
To configure a Raspberry Pi 3 as a Bluetooth Hotspot follow there steps: Deploying BlueZ v5.50 on Raspberry Pi 3
The version used for the scripts of the Raspberry Pi is Buster
Installation (Python2)
sudo apt-get install python-pip libglib2.0-dev
sudo pip install bluepy
Installation (Python3)
sudo apt-get install python3-pip libglib2.0-dev
sudo pip3 install bluepy
sudo bluetoothctlpower on-
scan onthen wait few seconds and turn offscan off - find the MAC of the device you want to connect
connect <MAC>
With the device connected
-
menu gatt -
list-attributes -
find the right attribute you want, there is probably one for writting and other for reading
For this XDK example, we know that:
1ed9e2c0-266f-11e6-850b-0002a5d5c51b is the UUID to read the service value
0c68d100-266f-11e6-b388-0002a5d5c51b is the UUID to write to the service

-
select-attribute <attribute>For write to the XDK BLE application, for example, you should select
select-attribute /org/bluez/hci0/dev_FA_7C_39_BB_25_84/service000e/char000fAnd then use
write 0x30(write 0 in hex)For read to the XDK BLE application, for example, you should select
select-attribute /org/bluez/hci0/dev_FA_7C_39_BB_25_84/service000e/char0011And then use
read
Universität Stuttgart - MBP Team 🔧