mirror of
https://github.com/DanielPollithy/bluetooth_drone.git
synced 2025-10-16 11:45:38 +00:00
resetup raspy
This commit is contained in:
parent
2e4e8ef0ec
commit
489d1b47ef
10
settings.py
10
settings.py
@ -1,15 +1,15 @@
|
|||||||
# this is the address of the hikey
|
# this is the address of the hikey
|
||||||
HIKEY_BT_ADDRESS = '98:7B:F3:19:FE:57'
|
HIKEY_BT_ADDRESS = '98:7B:F3:19:FE:57'
|
||||||
|
HIKEY_IP_ADDRESS = '192.168.1.139'
|
||||||
# raspy
|
# raspy
|
||||||
RASPY_BT_ADDRESS = 'B8:27:EB:76:09:0B'
|
RASPY_BT_ADDRESS = 'B8:27:EB:B5:3E:D2'
|
||||||
|
RASPY_IP_ADDRESS = '192.168.1.106'
|
||||||
|
|
||||||
|
|
||||||
# for demo purpose
|
# for demo purpose
|
||||||
DEMO = True
|
DEMO = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BT_SLEEP = 0.01 # seconds
|
BT_SLEEP = 0.01 # seconds
|
||||||
DISTANCE_SLEEP = 0.1
|
DISTANCE_SLEEP = 0.1
|
||||||
|
|
||||||
@ -29,8 +29,8 @@ SERVER_ETHEREUM_ADDRESS = '0x5d7CF9F787E89C73Bcb15393520bFe6aF4098bB8'
|
|||||||
STATION_OWNER_ETH_ADDRESS = '0x00DEa97B0E2a09b932b67079c184c2284d0880c0'
|
STATION_OWNER_ETH_ADDRESS = '0x00DEa97B0E2a09b932b67079c184c2284d0880c0'
|
||||||
|
|
||||||
WEBSITE_POLLING_SLEEP = 10 # seconds
|
WEBSITE_POLLING_SLEEP = 10 # seconds
|
||||||
WEBSITE_POLLING_URL = 'http://192.168.1.113:8100/api/drone/bookings/{}'.format(CLIENT_ETHEREUM_ADDRESS)
|
WEBSITE_POLLING_URL = 'http://{}:8100/api/drone/bookings/{}'.format(HIKEY_IP_ADDRESS, CLIENT_ETHEREUM_ADDRESS)
|
||||||
WEBSITE_STATUS_URL = 'http://192.168.1.113:8100/api/drone/status/{}'.format(CLIENT_ETHEREUM_ADDRESS)
|
WEBSITE_STATUS_URL = 'http://{}:8100/api/drone/status/{}'.format(HIKEY_IP_ADDRESS, CLIENT_ETHEREUM_ADDRESS)
|
||||||
|
|
||||||
RSSI_DISTANCE = 20
|
RSSI_DISTANCE = 20
|
||||||
MAX_RSSI_TRY_COUNT = 10000
|
MAX_RSSI_TRY_COUNT = 10000
|
||||||
|
|||||||
21
setup.sh
21
setup.sh
@ -1,23 +1,28 @@
|
|||||||
sudo apt-get install python-pip python-dev ipython
|
sudo apt-get install python-pip python-dev ipython
|
||||||
sudo apt-get install bluetooth libbluetooth-dev
|
sudo apt-get install bluetooth libbluetooth-dev
|
||||||
|
|
||||||
|
sudo pip install pybluez
|
||||||
|
# Install python package
|
||||||
|
git clone https://github.com/ewenchou/bluetooth-proximity.git
|
||||||
|
cd bluetooth-proximity
|
||||||
|
sudo python setup.py install
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# for low power bluetooth development
|
# for low power bluetooth development
|
||||||
sudo apt-get install libboost-thread-dev
|
# sudo apt-get install libboost-thread-dev
|
||||||
sudo apt-get install libperl-dev
|
# sudo apt-get install libperl-dev
|
||||||
# was necessary
|
# was necessary
|
||||||
sudo apt-get update --fix-missing
|
# sudo apt-get update --fix-missing
|
||||||
sudo apt-get install libgtk2.0-dev
|
# sudo apt-get install libgtk2.0-dev
|
||||||
sudo pip install gattlib
|
# sudo pip install gattlib
|
||||||
|
|
||||||
# sudo apt-get install mercurial
|
# sudo apt-get install mercurial
|
||||||
# hg clone https://bitbucket.org/OscarAcena/pygattlib
|
# hg clone https://bitbucket.org/OscarAcena/pygattlib
|
||||||
# cd pygattlib
|
# cd pygattlib
|
||||||
|
|
||||||
sudo pip install pybluez
|
|
||||||
# TODO: install py proximity
|
|
||||||
|
|
||||||
|
|
||||||
git clone https://github.com/ewenchou/bluetooth-proximity.git
|
git clone https://github.com/ewenchou/bluetooth-proximity.git
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user