Follow these instructions to set up the raspberry pi to be able to receive files from the app. Almost the entire list of instructions below is thanks to a tutorial on YouTube referenced at https://www.youtube.com/watch?v=DmtJBc229Rg
One major issue came from the git repository link, which I have fixed below.
- Install Necessary Software on the PI:
sudo apt-get install python-dev libbluetooth-dev
- Edit Bluetooth service to flag
sudo nano /lib/system/system/bluetooth.service
- About the 7th line down is:
ExecStar=/usr/lib/bluetooth/blluetoothd
- add a -C to the end of that line to look like
ExecStart=/usr/lib/bluetooth/blluetoothd -C
- Save, exit and reboot.
- Run the script to turn Bluetooth on from the command line
bash home/patch/bin/bluetoothOn.sh
- get pip
cd /home/patch/
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
git clone https://github.com/karulis/pytbluez
cd pybluez/
sudo python setup.py install
- Create Script to enable Bluetooth serial Port
cd /home/patch
sudo nano bluetooth_adv
sudo hciconfig hci0 piscan
sudo sdptool add SP
ctrl-X
- Give execute permission and run
sudo chmod +x bluetooth_adv
sudo ./bluetooth_adv
- You're all set-up.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.