Difference between revisions of "Installing BtleJuice"

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search
Line 56: Line 56:
  hciconfig hci0 up
  hciconfig hci0 up


if not hci0 please change to avoid troubles with BtleJuice
if the adapter is not hci0, please change to hci0 to avoid troubles with BtleJuice


=== Step 2 Launch  Btlejuice ===
=== Step 2 Launch  Btlejuice ===

Revision as of 20:35, 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 2 Launch Btlejuice

btlejuice-proxy


Setting up BtleJuice core

Used Hardware

  • raspberry pi 3 b+
  • Asus USB-BT400 Nano Bluetooth Stick

References