Difference between revisions of "Installing BtleJuice"
Jump to navigation
Jump to search
Line 75: | Line 75: | ||
=== Step 3: Plug-in the bluetooth adapter === | === Step 3: Plug-in the bluetooth adapter === | ||
=== Step 4: | === Step 4: Ensure that the Bluetooth adapter is up. | ||
hciconfig | hciconfig | ||
sudo hciconfig hciX up | |||
X is bluetooth adapter number obtained in the previous step. | |||
== Used Hardware == | == Used Hardware == |
Revision as of 20:53, 14 February 2020
Summary
This documentation describes how to install BtleJuice on raspberrypi 3b+
Requirements
- Raspbian Buster with desktop based on Debian Buster(version: february 2020, release date: 2020-02-13, kernel version: 4.19)
Install nodejs
Step 1 Remove nodejs
sudo apt-get purge nodejs && sudo apt-get autoremove && sudo apt-get autoclean
Step 2 run the following script
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash
Step 3 install npm 6.17.1
nvm list
nvm ls-remote
nvm install 6.17.1
nvm use 6.17.1
nvm alias default 6.17.1
node -v
npm install -g npm
npm -v
Step 3 increases the amount of inotify watches.
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Install BtleJuice and dependencies
Step 1 Install the dependencies of BtleJuice using the package manager.
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
Step 2 Install Btlejuice
npm install -g btlejuice
Setting up BtleJuice proxy
Step 1: Attach the bluetooth adapter
service bluetooth start
Step 2: ensure that the adapter is functioning and hci0!!!
hciconfig hciconfig hci0 up
if the adapter is not hci0, please change to hci0 to avoid troubles with BtleJuice
Step 3 Find out the IP address
ifconfig
Step 4 Launch Btlejuice
btlejuice-proxy
Setting up BtleJuice core
repeat "install nodejs" and "Install BtleJuice and dependencies" on a second raspberry pi
Open a terminal on the host and run
hciconfig
Step 2: Stop bluetooth service
sudo service bluetooth stop
Step 3: Plug-in the bluetooth adapter
=== Step 4: Ensure that the Bluetooth adapter is up.
hciconfig sudo hciconfig hciX up
X is bluetooth adapter number obtained in the previous step.
Used Hardware
- raspberry pi 3 b+
- Asus USB-BT400 Nano Bluetooth Stick