setting up test pi
1 parent 3af4d3b commit e45e09c1cfa9dcabf7a5aac95e0a11d09a6151b9
root authored on 5 Feb 2021
Showing 1 changed file
View
36
Setup_Pi_for_BLE.txt 0 → 100644
- Setup Pi for BLE -
 
sudo apt-get install bluez bluez-tools python-bluez (gives us hcitool & gatttool + python imports for bluez)
 
### install bleah ###
cd /opt
git clone https://github.com/evilsocket/bleah.git
cd bleah/
git checkout 6a2fd3a
 
sudo apt-get install git build-essential libglib2.0-dev python-setuptools
 
cd /opt
git clone https://github.com/IanHarvey/bluepy.git
cd bluepy/
sudo python setup.py build
sudo python setup.py install
 
sudo nano /usr/local/lib/Ptyhon2.7/dist-packages/bluepy-1.3.0-py2.7.egg/bluepy/btly.py
change:
from queue import Queue, Empty
to:
from Queue import Queue, Empty
(capitolization of first "queue")
 
cd /opt/bleah/
python setup.py build
sudo python setup.py install
 
### install spooftooph ##
sudo apt-get install libncurses-dev libbluetooth-dev
cd /opt
git clone https://gitlab.com/kalilinux/packages/spooftooph.git
cd spooftooph/
make
make install
Buy Me A Coffee